A auto-detect proxy switcher fot http, https, ftp, rsync, ssh, git protocols.
A smart proxy switcher wrapper, supports http, https, ftp, rsync, ssh(connect depended), git(connect depended) protocols. It can automatically detect your network environment and set proxy for you.
If you usually switch the network environment (maybe home with no-proxy and workplace with proxy), it may help you a lot.
Simply source it in your .zshrc, or any shell script resource file like this:
source /path/to/smart_switcher.sh
and, make sure set your proxy_server/gateway in smart_switcher.sh
.
Normally, it antomatically executes when you login in.
smart_switcher
supports cecho, who will bring you some colors.
connect [binary file download here] is required if proxy is supported in ssh and git. You can install it easily in path /usr/bin/connect
.