commit 365896d491e7f8f875faa09ae620b5b9f2473ce2
parent ef1c6bfeb41e2e6b7798d3463f02aa45ae20c498
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date:   Mon,  2 May 2022 19:13:45 +0200

Edit and add aliases

Diffstat:
M.config/git/config | 1+
M.config/zsh/host-gray | 7+++----
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/.config/git/config b/.config/git/config @@ -5,6 +5,7 @@ a = add addurl = remote set-url --add origin b = branch + ba = branch -a c = commit cm = commit -m co = checkout diff --git a/.config/zsh/host-gray b/.config/zsh/host-gray @@ -20,15 +20,14 @@ up() { fi } -restart-wifi-daemon() { +rwd() { while true; do - curl -Is http://oscarbenedito.com > /dev/null || \ - { printf "Restarting wifi..."; restart-wifi; printf " done at "; date +"%a %d %b, %H:%M"; printf "\n"; } + curl -Is http://oscarbenedito.com > /dev/null || { rw; sleep 30; } sleep 30 done } -restart-wifi() { +rw() { printf "Restarting wifi..."; nmcli radio wifi off; sleep 1;