summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Stück <adam@adast.xyz>2023-02-24 15:46:40 +0100
committerAdam Stück <adam@adast.xyz>2023-02-24 15:46:40 +0100
commit582babe024aded4704da38fca833cf05dc6c706e (patch)
tree596c457d57f5f237ebc5a1f2781094075114dc05
parentbe03a2c21de1215da02265ad06431cd9cfa75c23 (diff)
aliases: add aliases to toggle vpn
also add nmcli shortcut
-rw-r--r--.config/aliases5
1 files changed, 5 insertions, 0 deletions
diff --git a/.config/aliases b/.config/aliases
index b52d763..51433a4 100644
--- a/.config/aliases
+++ b/.config/aliases
@@ -18,6 +18,9 @@ alias wl="wc -l"
alias pk="checkupdates"
alias wt="curl wttr.in/$(cat $HOME/.config/forecast/location)"
alias grep="grep --color"
+alias net="nmcli"
+alias vpn="doas wg-quick up adast"
+alias novpn="doas wg-quick down adast"
alias ls='exa'
alias lh="exa -1dI '.|..' .*"
@@ -47,9 +50,11 @@ _completion_loader git
_completion_loader exa
_completion_loader todo.sh
_completion_loader sudo
+_completion_loader nmcli
complete -o bashdefault -o default -o nospace -F __git_wrap__git_main g c
complete -o bashdefault -o default -F _fzf_path_completion e
complete -o bashdefault -o filenames -F _exa ls
complete -F _todo t
+complete -F _nmcli net
complete -F _sudo doas