Skip to content

Instantly share code, notes, and snippets.

@threeel
Forked from taylorotwell/weather.sh
Last active February 16, 2017 16:44
Show Gist options
  • Select an option

  • Save threeel/04ba18257ea3014be549004e0902d5c6 to your computer and use it in GitHub Desktop.

Select an option

Save threeel/04ba18257ea3014be549004e0902d5c6 to your computer and use it in GitHub Desktop.
Weather CLI
alias weather='curl -s wttr.in | sed -n "1,7p"'
alias weather-long="curl -s wttr.in | sed -n '1,38p'" #long weather.. all data
alias weather-today="curl -s wttr.in | sed -n '1,17p'" #weather today
alias weather-tomorrow="curl -s wttr.in | sed -n '1,7p'" #weather tomorrow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment