swapped wttr.in call to use --max-time instead of --connect-timeout
This commit is contained in:
parent
181dbd4019
commit
4ae116022c
1 changed files with 1 additions and 1 deletions
2
.zshrc
2
.zshrc
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue