1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2024-12-22 09:13:33 +01:00
dotfiles/bash/scriptlets/70_wttr
Eric Teunis de Boone 37123ca4cd Possiblity of having special setups for hostnames
For .Bashrc aswell as generic .Profile
2016-09-26 15:40:04 +02:00

8 lines
208 B
Text

#This file should be cronned from: wttr.in/<place>
#For example:
#27 */2 * * * curl -s wttr.in/Voorthuizen | sed -n 3,7p > .wttr 2>&1
WTTR=~/.wttr
if [ -f $WTTR ]; then
cat $WTTR
alias wttr='cat $WTTR'
fi