Created
October 8, 2022 13:16
-
-
Save sendya/494b03f810be093ac7632ad8cc61d35f to your computer and use it in GitHub Desktop.
fish functions
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
function cc | |
set -e http_proxy | |
set -e https_proxy | |
echo -e "unset proxy" | |
end |
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
function myip | |
curl -s http://myip.ipip.net | |
end |
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
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