Dotfiles for my tiling window manager + terminal workflow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
333 B

  1. function vpn-red-hat
  2. if test $argv[1] = 'up'
  3. sudo systemctl start NetworkManager.service
  4. and sleep 3
  5. and nmcli con up id "1 - Red Hat Global VPN" --ask
  6. else if test $argv[1] = 'down'
  7. nmcli con down id "1 - Red Hat Global VPN"
  8. and sudo systemctl stop NetworkManager.service
  9. end
  10. end