diff options
author | 2024-03-25 16:43:09 +0530 | |
---|---|---|
committer | 2024-03-25 16:43:09 +0530 | |
commit | a62114c91f2070c8c8453d117f3d81dc113e41ff (patch) | |
tree | f266e87af29a08c01f82bc32dd7d463d8ec4441a /zsh/oh-my-zsh/plugins/shell-proxy/shell-proxy.plugin.zsh | |
parent | af120ab348f2e1a5a39dec035ed9dcf84189a64e (diff) | |
download | dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.tar.gz dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.tar.bz2 dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.zip |
dotfile update
Diffstat (limited to 'zsh/oh-my-zsh/plugins/shell-proxy/shell-proxy.plugin.zsh')
-rw-r--r-- | zsh/oh-my-zsh/plugins/shell-proxy/shell-proxy.plugin.zsh | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/zsh/oh-my-zsh/plugins/shell-proxy/shell-proxy.plugin.zsh b/zsh/oh-my-zsh/plugins/shell-proxy/shell-proxy.plugin.zsh deleted file mode 100644 index 9d45b52..0000000 --- a/zsh/oh-my-zsh/plugins/shell-proxy/shell-proxy.plugin.zsh +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/bash -# shellcheck disable=SC1090,SC2154 - -proxy() { - # deprecate $DEFAULT_PROXY, use SHELLPROXY_URL instead - if [[ -n "$DEFAULT_PROXY" && -z "$SHELLPROXY_URL" ]]; then - echo >&2 "proxy: DEFAULT_PROXY is deprecated, use SHELLPROXY_URL instead" - SHELLPROXY_URL="$DEFAULT_PROXY" - unset DEFAULT_PROXY - fi - - # deprecate CONFIG_PROXY, use SHELLPROXY_CONFIG instead - if [[ -n "$CONFIG_PROXY" && -z "$SHELLPROXY_CONFIG" ]]; then - echo >&2 "proxy: CONFIG_PROXY is deprecated, use SHELLPROXY_CONFIG instead" - SHELLPROXY_CONFIG="$CONFIG_PROXY" - unset CONFIG_PROXY - fi - - # the proxy.py script is in the same directory as this function - local proxy="${functions_source[$0]:A:h}/proxy.py" - - # capture the output of the proxy script and bail out if it fails - local output - output="$(SHELLPROXY_URL="$SHELLPROXY_URL" SHELLPROXY_CONFIG="$SHELLPROXY_CONFIG" "$proxy" "$1")" || - return $? - - # evaluate the output generated by the proxy script - source <(echo "$output") -} - -_proxy() { - local -r commands=('enable' 'disable' 'status') - compset -P '*,' - compadd -S '' "${commands[@]}" -} - -compdef _proxy proxy |