Skip to content

Instantly share code, notes, and snippets.

@sendya
Created October 8, 2022 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sendya/494b03f810be093ac7632ad8cc61d35f to your computer and use it in GitHub Desktop.
Save sendya/494b03f810be093ac7632ad8cc61d35f to your computer and use it in GitHub Desktop.
fish functions
function cc
set -e http_proxy
set -e https_proxy
echo -e "unset proxy"
end
function myip
curl -s http://myip.ipip.net
end
function proxy
set -gx http_proxy http://$WIN_HOST:7891
set -gx https_proxy http://$WIN_HOST:7891
echo -e "setter proxy $WIN_HOST:7891"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment