Skip to content

Instantly share code, notes, and snippets.

@havvg
Created October 11, 2016 10:16
Show Gist options
  • Save havvg/13271fcdbdefbdecdfa9cfa4bf1b8225 to your computer and use it in GitHub Desktop.
Save havvg/13271fcdbdefbdecdfa9cfa4bf1b8225 to your computer and use it in GitHub Desktop.
weather function calling wttr.in API
weather () {
CITY=${1-"Penzberg"}
curl "http://wttr.in/${CITY}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment