mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02:00
misc updates
This commit is contained in:
parent
6a57013187
commit
1c9806cd0c
5 changed files with 22 additions and 21 deletions
|
@ -50,7 +50,7 @@
|
|||
source ${pkgs.agdsn-zsh-config}/etc/zsh/zshrc
|
||||
|
||||
function svpn() {
|
||||
unit=$(systemctl list-unit-files | grep "openconnect\|wg-quick\|wireguard\|openvpn" | cut -d "." -f1 | fzf --preview 'systemctl status {}')
|
||||
unit=$(systemctl list-unit-files | grep "openconnect\|wg-quick\|wireguard\|openvpn\|openfortivpn" | cut -d "." -f1 | fzf --preview 'systemctl status {}')
|
||||
if [ $(systemctl is-active $unit) = "inactive" ]; then
|
||||
systemctl start $unit
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue