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

8 lines
152 B
Fish

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