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
162 B
Fish
Raw Normal View History

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