From 582babe024aded4704da38fca833cf05dc6c706e Mon Sep 17 00:00:00 2001 From: Adam Stück Date: Fri, 24 Feb 2023 15:46:40 +0100 Subject: aliases: add aliases to toggle vpn also add nmcli shortcut --- .config/aliases | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.config/aliases') 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 -- cgit v1.2.3-70-g09d2