config/shell: util content amendments

This commit is contained in:
xeruf 2022-09-18 13:48:28 +02:00
parent e2e252a7c1
commit 5d7f2b33a5
2 changed files with 6 additions and 4 deletions

View File

@ -274,11 +274,13 @@ dns() {
# allow changing DNS server with @ # allow changing DNS server with @
# TODO implement rdns via -x # TODO implement rdns via -x
for arg; do for arg; do
local trimmed="${arg##*//}"
local cut="${trimmed%%/*}"
if which host >/dev/null 2>&1 if which host >/dev/null 2>&1
then host "${arg##*/}" $server then host "$cut" $server
else else
$(echo $dig) A @$server "${arg##*/}" $(echo $dig) A @$server "$cut"
$(echo $dig) AAAA @$server "${arg##*/}" $(echo $dig) AAAA @$server "$cut"
fi fi
done done
} }

View File

@ -3,4 +3,4 @@
pkill signal pkill signal
pkill aw-server pkill aw-server
pkill aw-qt pkill aw-qt
systemctl stop --user syncthing plasma-baloorunner kde-baloo systemctl stop --user syncthing plasma-baloorunner kde-baloo openvpn-client@deltaPeak.service