dotfiles/fish/.config/fish/functions/vpn.fish

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
152 B
Fish
Raw Normal View History

function vpn
set -l var (ls /sys/class/net | grep vpn)
if test -z "$var"
wg-quick up vpn
else
wg-quick down vpn
end
end