swapped wttr.in call to use --max-time instead of --connect-timeout

This commit is contained in:
Sebastian Bugge 2023-05-01 12:16:46 +02:00
parent 181dbd4019
commit 4ae116022c
Signed by: kaholaz
GPG key ID: 2EFFEDEE03519691

2
.zshrc
View file

@ -58,7 +58,7 @@ fi
# Attach to a tmux session on startup # Attach to a tmux session on startup
if [ -z "$TMUX" ] && [[ "$HAS_NETWORK" == 1 ]]; then if [ -z "$TMUX" ] && [[ "$HAS_NETWORK" == 1 ]]; then
curl -s 'wttr.in/Trondheim?format=%l:+%c%t\n' --connect-timeout 0.5 2> /dev/null curl -s 'wttr.in/Trondheim?format=%l:+%c%t\n' --max-time 0.5 2> /dev/null
echo " ---" echo " ---"
fortune -s fortune -s
fi fi