1
0
mirror of https://github.com/DazAh/dotfiles synced 2026-05-21 18:25:46 +01:00
Files
dotfiles/exact_dot_oh-my-zsh/exact_plugins/exact_shell-proxy/shell-proxy.plugin.zsh
T
2020-12-13 21:56:27 +00:00

17 lines
255 B
Bash

#!/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'