fish: functions: Add a helper to bring up or tear down VPN
This commit is contained in:
parent
715bb9c589
commit
7cb29dbd17
1 changed files with 8 additions and 0 deletions
8
fish/.config/fish/functions/vpn.fish
Normal file
8
fish/.config/fish/functions/vpn.fish
Normal 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
|
Loading…
Reference in a new issue