From 0bcae45cd98a676fa72847f6ff42f68473ab09d7 Mon Sep 17 00:00:00 2001 From: laily Date: Wed, 27 Nov 2024 11:41:10 +0800 Subject: [PATCH] fix: script function --- fish/config.fish | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/fish/config.fish b/fish/config.fish index 8e43299..f49050c 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -131,7 +131,7 @@ function punset set -e FTP_PROXY set -e ALL_PROXY echo "Proxy environment variables have been reset." - export | grep -i proxy + pshow end function pshow @@ -139,7 +139,9 @@ function pshow end function pset - set -e https_proxy http://127.0.0.1:7890 - set -e http_proxy http://127.0.0.1:7890 - set -e all_proxy socks5://127.0.0.1:7890 + set -gx https_proxy http://127.0.0.1:7890 + set -gx http_proxy http://127.0.0.1:7890 + set -gx all_proxy socks5://127.0.0.1:7890 + echo "Proxy environment variables have been set." + pshow end