mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-05-21 19:18:46 +02:00
remove 'svpn' function
This commit is contained in:
parent
9f2edc86f4
commit
f8041dc5b3
1 changed files with 0 additions and 10 deletions
|
@ -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'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue