From f85a27670ca03382829d3aa080683876aaf7cd47 Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Mon, 2 Jan 2023 22:53:25 +0100 Subject: [PATCH] replaned sn zsh function with a neat vpn selector --- users/rouven/modules/zsh/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users/rouven/modules/zsh/default.nix b/users/rouven/modules/zsh/default.nix index 71ec2aa..6569069 100644 --- a/users/rouven/modules/zsh/default.nix +++ b/users/rouven/modules/zsh/default.nix @@ -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() {