From ee9d95ed5e480882bef5b89fb0d492c9a7d422d3 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sun, 20 Feb 2022 15:07:48 +0300 Subject: [PATCH] http[s]_proxy is set by default --- x/bin/start-im | 2 +- youtube-dl/bin/yt | 1 + zsh/.zsh/env/005proxy.zsh | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 zsh/.zsh/env/005proxy.zsh diff --git a/x/bin/start-im b/x/bin/start-im index 3b883d8..2e3373f 100755 --- a/x/bin/start-im +++ b/x/bin/start-im @@ -7,7 +7,7 @@ tmux new-session -d -s im tmux rename-window -t im:1 "mattermost" tmux split-window -t im:1 -paste im:1.0 "~/work/matterircd/start.sh" +paste im:1.0 "~w/matterircd/start.sh" sleep 1 paste im:1.1 "irssi" tmux resize-pane -U -t im:1 15 diff --git a/youtube-dl/bin/yt b/youtube-dl/bin/yt index 01a2af0..ebdf4e1 100755 --- a/youtube-dl/bin/yt +++ b/youtube-dl/bin/yt @@ -1,4 +1,5 @@ #!/usr/local/bin/zsh . ~/work/youtube-venv/bin/activate +unset http_proxy https_proxy yt-dlp --config-location ~/.youtube-dl.conf $@ diff --git a/zsh/.zsh/env/005proxy.zsh b/zsh/.zsh/env/005proxy.zsh new file mode 100644 index 0000000..a32e26f --- /dev/null +++ b/zsh/.zsh/env/005proxy.zsh @@ -0,0 +1,2 @@ +export http_proxy=http://localhost:8080 +export https_proxy=$http_proxy -- 2.44.0