Skip to content

HuaDeity/zsh-osx-autoproxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

zsh-osx-autoproxy

Auto Set Proxy for macOS zsh

Requirements

Set system proxy on your macOS

Install

In your ~/.zshrc

Simply clone this repository and source the script:

git clone https://github.com/HuaDeity/zsh-osx-autoproxy.git
echo "source ${{q-}PWD/zsh-osx-autoproxy/zsh-osx-autoproxy.zsh}"

Then, enable auto proxy in the current interactive shell:

source ./zsh-osx-autoproxy/zsh-osx-autoproxy.zsh

With a plugin manager

Oh-my-zsh

  1. Clone this repository in oh-my-zsh's plugins directory:
git clone https://github.com/HuaDeity/zsh-osx-autoproxy.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-osx-autoproxy
  1. Activate the plugin in ~/.zshrc:
plugins=( [plugins...] zsh-osx-autoproxy)
  1. Restart zsh (such as by opening a new instance of your terminal emulator).

Commands

proxy
noproxy

There are two commands you can use.

See Also

Waiting for Linux user making bash-linux-autoproxy.

powershell-windows-autoproxy

Thanks

Thanks to zsh-syntax-highlighting for the install instruction.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages