From f8041dc5b3fad2bdf675338130a0d6bfc928209f Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Mon, 19 May 2025 14:34:34 +0200 Subject: [PATCH] remove 'svpn' function --- shared/zsh.nix | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/shared/zsh.nix b/shared/zsh.nix index 4f655d5..64ce38f 100644 --- a/shared/zsh.nix +++ b/shared/zsh.nix @@ -77,16 +77,6 @@ in zvm_after_init_commands+=(eval "$(atuin init zsh --disable-up-arrow)") unsetopt extendedglob - - function svpn() { - unit=$(systemctl list-unit-files | grep "openconnect\|wg-quick\|wireguard\|openvpn\|openfortivpn" | cut -d "." -f1 | ${pkgs.fzf}/bin/fzf --preview 'systemctl status {}') - if [ $(systemctl is-active $unit) = "inactive" ]; then - systemctl start $unit - else - systemctl stop $unit - fi - } - prompt_dir() { prompt_segment blue $CURRENT_FG '%c' }