diff options
author | justanothercatgirl <sotov2070@gmail.com> | 2024-03-10 21:25:07 +0300 |
---|---|---|
committer | justanothercatgirl <sotov2070@gmail.com> | 2024-03-10 21:26:23 +0300 |
commit | dbb48f0acaacede21cfccfb8f30a206236520068 (patch) | |
tree | 02e944ecd0c1a482dfe5af2b8e1b81fbc69ee6a4 /.root | |
parent | dad11ba32a578ddc6f156201a2bc03af6d20ee5f (diff) |
fixed git proxy, moved ssh in rofi
Diffstat (limited to '.root')
-rwxr-xr-x | .root/etc/profile.d/proxy.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.root/etc/profile.d/proxy.sh b/.root/etc/profile.d/proxy.sh index b6bbc45..997ea5d 100755 --- a/.root/etc/profile.d/proxy.sh +++ b/.root/etc/profile.d/proxy.sh @@ -17,6 +17,10 @@ function proxy-enable() { gsettings set org.gnome.system.proxy.$i port 2080 done + # git + git config --global http.proxy 127.0.0.1:2080 + git config --global https.proxy 127.0.0.1:2080 + export PROXY_ON_JCG=true echo "proxy enabled" } @@ -26,6 +30,8 @@ function proxy-disable() { unset HTTP_PROXY FTP_PROXY HTTPS_PROXY http_proxy ftp_proxy https_proxy export -n HTTP_PROXY FTP_PROXY HTTPS_PROXY http_proxy ftp_proxy https_proxy gsettings reset org.gnome.system.proxy mode + git config --global --unset http.proxy + git config --global --unset https.proxy unset PROXY_ON_JCG echo "proxy disabled" |