HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/current/path.fish.inc
#!/bin/fish
# The begin/end block limits the scope of all variables except $PATH
begin
  # This script aims to be a direct mapping of our path.bash.inc shell, rather
  # than idiomatic fish. Why? I don't really understand fish.
  set script_link (readlink (status -f)); or set script_link (status -f)
  # This sed expression is the equivalent of "${script_link%/*}" in bash, which
  # chops off "/*" (with * as a wildcard) from the end of script_link.
  set apparent_sdk_dir (echo $script_link | sed 's/\(.*\)\/.*/\1/')
  if [ "$apparent_sdk_dir" = "$script_link" ]
    set apparent_sdk_dir .
  end
  set old_dir (pwd)
  # No "cd -P" in fish. It always resolves symlinks to their canonical location,
  # though, when you "cd" in.
  # Also, cd is  cd is *both* a shell builtin and shell wrapper function (to
  # implement "cd -") in fish, so "command cd" won't work. "builtin cd" will.
  set sdk_dir (builtin cd "$apparent_sdk_dir" > /dev/null; and pwd)
  builtin cd "$old_dir"
  set bin_path "$sdk_dir/bin"
  # -gx for global (not limited to this begin/end block) and exportable (part of
  # the environment for child processes)
  if not contains "$bin_path" $PATH
    set -gx PATH "$bin_path" $PATH
  end
end