mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 05:13:10 +01:00
replaned sn zsh function with a neat vpn selector
This commit is contained in:
parent
6c56a8669e
commit
f85a27670c
|
@ -55,8 +55,8 @@
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function sn() {
|
function svpn() {
|
||||||
nmcli connection up $(nmcli connection show | tail -n +2 | cut -d " " -f1 | fzf --preview 'nmcli connection show {}')
|
systemctl $(echo "start\nstop\nstatus"|fzf) $(systemctl list-unit-files | grep "openconnect\|wg-quick\|wireguard\|openvpn" | cut -d "." -f1 | fzf)
|
||||||
}
|
}
|
||||||
|
|
||||||
prompt_dir() {
|
prompt_dir() {
|
||||||
|
|
Loading…
Reference in a new issue