You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the plugin to the list of plugins for oh-my-zsh to load (inside ~/.zshrc):
plugins=(
[plugins
...]
zsh-osx-autoproxy
)
Start a new terminal session.
Antigen
Antigen is a zsh plugin manager, and it support oh-my-zsh plugin as well. You only need to add antigen bundle sukkaw/zsh-osx-autoproxy to your .zshrc with your other bundle commands if you are using Antigen. Antigen will handle cloning the plugin for you automatically the next time you start zsh. You can also add the plugin to a running zsh with antigen bundle sukkaw/zsh-osx-autoproxy for testing before adding it to your .zshrc.
Usage
After install the plugin and have proxy configured in System Prefrences, start a new terminal session and following environment variables will be set (if applicable):
http_proxy
https_proxy
ftp_proxy
all_proxy
Uninstallation
If you install zsh-osx-autoproxy with Antigen, you need to remove antigen bundle sukkaw/zsh-osx-autoproxy to disable the plugin.
If you install zsh-osx-autoproxy with oh-myzsh, you need to remove zsh-osx-autoproxy item from plugin array, then rm -rf ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-osx-autoproxy to remove the plugin.