mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-09 13:10:40 +00:00
14 lines
327 B
Fish
14 lines
327 B
Fish
|
function _proxy_set -a proxy \
|
||
|
-d "Set all proxy vars to specified value"
|
||
|
|
||
|
set -l envars http_proxy ftp_proxy https_proxy all_proxy no_proxy \
|
||
|
HTTP_PROXY HTTPS_PROXY FTP_PROXY NO_PROXY ALL_PROXY
|
||
|
for envar in $envars
|
||
|
if test $proxy = '-e'
|
||
|
set -e $envar
|
||
|
else
|
||
|
set -gx $envar $proxy
|
||
|
end
|
||
|
end
|
||
|
end
|