summaryrefslogtreecommitdiff
path: root/config/essentials/shell
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-06-20 12:01:39 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-06-20 12:01:39 +0200
commit947f7df73f16981f170265a64a964142fc617023 (patch)
tree75c7f8560539303e4a5c1f93241a1e8912bad4cc /config/essentials/shell
parentff6c38d3364165a7bae431888a87aab1e53a80b9 (diff)
checkpoint
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" ||