Skip to content

Commit

Permalink
feat: added proxy status script
Browse files Browse the repository at this point in the history
  • Loading branch information
fbosch committed Jul 18, 2024
1 parent 65e1b1f commit ad0f092
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .config/fish/scripts.fish
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,13 @@ function toggle_proxy
networksetup -setsecurewebproxystate Wi-Fi off
end
end

function proxy_status

echo (set_color blue)"🌐 Proxy status "(set_color normal)
echo "HTTP: "
networksetup -getwebproxy Wi-Fi | grep Enabled | cut -d " " -f 2 | head -1
echo "HTTPS: "
networksetup -getsecurewebproxy Wi-Fi | grep Enabled | cut -d " " -f 2 | head -1

end
6 changes: 6 additions & 0 deletions .config/nvim/spell/en.utf-8.add
Original file line number Diff line number Diff line change
Expand Up @@ -1215,3 +1215,9 @@ rules-of-hooks
UUIDv4
APIs
generate
th
þ
ð
é
œ
ng
Binary file modified .config/nvim/spell/en.utf-8.add.spl
Binary file not shown.

0 comments on commit ad0f092

Please sign in to comment.