fish: functions: Add a helper to bring up or tear down VPN

This commit is contained in:
Sanchayan Maity 2022-10-04 20:54:00 +05:30
parent 715bb9c589
commit 7cb29dbd17
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
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