replaned sn zsh function with a neat vpn selector

This commit is contained in:
Rouven Seifert 2023-01-02 22:53:25 +01:00
parent 6c56a8669e
commit f85a27670c
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09

View file

@ -55,8 +55,8 @@
fi
}
function sn() {
nmcli connection up $(nmcli connection show | tail -n +2 | cut -d " " -f1 | fzf --preview 'nmcli connection show {}')
function svpn() {
systemctl $(echo "start\nstop\nstatus"|fzf) $(systemctl list-unit-files | grep "openconnect\|wg-quick\|wireguard\|openvpn" | cut -d "." -f1 | fzf)
}
prompt_dir() {