diff options
Diffstat (limited to '')
| -rw-r--r-- | .config/fish/conf.d/abbr.fish | 3 |
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" | |||
| 7 | abbr --add gco "git checkout" | 7 | abbr --add gco "git checkout" |
| 8 | 8 | ||
| 9 | # Added proxy flags | 9 | # Added proxy flags |
| 10 | set SSPROXY 'socks5://localhost:1080' | 10 | set -l ssconfig "/etc/shadowsocks-rust/config.json" |
| 11 | set -l SSPROXY "socks5://$(jq -r .local_address $ssconfig):$(jq -r .local_port $ssconfig)" | ||
| 11 | abbr --add curlss "curl --proxy=$SSPROXY" | 12 | abbr --add curlss "curl --proxy=$SSPROXY" |
| 12 | abbr --add ytdlpss "yt-dlp --proxy=$SSPROXY" | 13 | abbr --add ytdlpss "yt-dlp --proxy=$SSPROXY" |
| 13 | 14 | ||
