Created
September 21, 2014 13:35
-
-
Save CIAvash/354b3b6bbe0197e9893c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env fish | |
set -x no_proxy 'localhost,127.0.0.1' | |
function toggle_proxy | |
if not set -q http_proxy | |
set -gx http_proxy 'http://127.0.0.1:8118' | |
set -gx https_proxy $http_proxy | |
echo 'Proxy On' | |
else | |
set -e http_proxy | |
set -e https_proxy | |
echo 'proxy Off' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this line to "~/.config/fish/config.fish":