mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-11-22 00:13:02 +01:00
Add shell-proxy plugin (#8692)
This commit is contained in:
1 parent
aada4d62bf
commit
5ea25e6736
5 files changed
+174
No files matched your search
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/bash
|
||||
# shellcheck disable=SC1090
|
||||
|
||||
__PROXY__="${0:A:h}/proxy.py"
|
||||
|
||||
proxy() {
|
||||
source <("$__PROXY__" "$1")
|
||||
}
|
||||
|
||||
_proxy() {
|
||||
local -r commands=('enable' 'disable' 'status')
|
||||
compset -P '*,'
|
||||
compadd -S '' "${commands[@]}"
|
||||
}
|
||||
|
||||
compdef '_proxy' 'proxy'
|
||||
Reference in new issue
Block a user