Skip to content

Instantly share code, notes, and snippets.

@nicoaudy
Created July 1, 2019 04:10
Show Gist options
  • Save nicoaudy/a37bdbf8d3cce0d9692fe61d9be3ecb4 to your computer and use it in GitHub Desktop.
Save nicoaudy/a37bdbf8d3cce0d9692fe61d9be3ecb4 to your computer and use it in GitHub Desktop.
Weather CLI
alias weather='curl -s wttr.in | sed -n "1,7p"'
alias weather_now="curl -s wttr.in | sed -n '1,7p'" #current weather
alias weather_today="curl -s wttr.in | sed -n '1,17p'" #weather today
alias weather_tommorow="curl -s wttr.in | sed -n '18,27p'" #weather tomorrow
alias weather_all="curl -s wttr.in | sed -n '1,38p'" #long weather.. all data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment