Skip to content

Commit

Permalink
fix: webproxy toggler
Browse files Browse the repository at this point in the history
  • Loading branch information
fbosch committed Jul 15, 2024
1 parent 2ec432c commit 942fc68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .config/fish/scripts.fish
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,11 @@ function toggle_proxy
set current_status (networksetup -getwebproxy "Wi-Fi" | grep Enabled | cut -d " " -f 2 | head -1)
if test "$current_status" = No
echo (set_color green)"🌐 Turning the proxy on "(set_color normal)
networksetup -setwebproxy Wi-Fi on
networksetup -setwebproxystate Wi-Fi on
networksetup -setsecurewebproxystate Wi-Fi on
else
echo (set_color red)"🌐 Turning the proxy off "(set_color normal)
networksetup -setwebproxystate Wi-Fi off
networksetup -setsecurewebproxystate Wi-Fi off
end
end

0 comments on commit 942fc68

Please sign in to comment.