remove 'svpn' function

This commit is contained in:
Rouven Seifert 2025-05-19 14:34:34 +02:00
parent 9f2edc86f4
commit f8041dc5b3

View file

@ -77,16 +77,6 @@ in
zvm_after_init_commands+=(eval "$(atuin init zsh --disable-up-arrow)") zvm_after_init_commands+=(eval "$(atuin init zsh --disable-up-arrow)")
unsetopt extendedglob 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_dir() {
prompt_segment blue $CURRENT_FG '%c' prompt_segment blue $CURRENT_FG '%c'
} }