summaryrefslogtreecommitdiff
path: root/config/essentials/shell
diff options
context:
space:
mode:
Diffstat (limited to 'config/essentials/shell')
-rw-r--r--config/essentials/shell/aliases.sh3
-rw-r--r--config/essentials/shell/functions.sh2
2 files changed, 1 insertions, 4 deletions
diff --git a/config/essentials/shell/aliases.sh b/config/essentials/shell/aliases.sh
index fdd9d17..ddc605a 100644
--- a/config/essentials/shell/aliases.sh
+++ b/config/essentials/shell/aliases.sh
@@ -164,9 +164,6 @@ alias wtip='wt ip -c -brief addr'
alias fusephone='sshfs myphone: /media/phone'
alias ttyper='ttyper -l english1000'
-alias wgup='doas wg-quick up wg0'
-alias wgdown='doas wg-quick down wg0'
-
# NPM
alias npi="npm init --yes"
diff --git a/config/essentials/shell/functions.sh b/config/essentials/shell/functions.sh
index 8e51135..1b69fbd 100644
--- a/config/essentials/shell/functions.sh
+++ b/config/essentials/shell/functions.sh
@@ -306,7 +306,7 @@ gdown () {
}
# toggle wireguard vpn on $1 -> interface
-wgtoggle() {
+wgt() {
d="${1:-wg0}"
ip -br a | awk '{print $1}' | grep "$d" > /dev/null &&
doas wg-quick down "$d" ||