summaryrefslogtreecommitdiffstats
path: root/.config/fish
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.config/fish/conf.d/abbr.fish3
1 files changed, 2 insertions, 1 deletions
diff --git a/.config/fish/conf.d/abbr.fish b/.config/fish/conf.d/abbr.fish
index 859c222..c37aa2a 100644
--- a/.config/fish/conf.d/abbr.fish
+++ b/.config/fish/conf.d/abbr.fish
@@ -7,7 +7,8 @@ abbr --add ga "git add"
7abbr --add gco "git checkout" 7abbr --add gco "git checkout"
8 8
9# Added proxy flags 9# Added proxy flags
10set SSPROXY 'socks5://localhost:1080' 10set -l ssconfig "/etc/shadowsocks-rust/config.json"
11set -l SSPROXY "socks5://$(jq -r .local_address $ssconfig):$(jq -r .local_port $ssconfig)"
11abbr --add curlss "curl --proxy=$SSPROXY" 12abbr --add curlss "curl --proxy=$SSPROXY"
12abbr --add ytdlpss "yt-dlp --proxy=$SSPROXY" 13abbr --add ytdlpss "yt-dlp --proxy=$SSPROXY"
13 14