Skip to content

Instantly share code, notes, and snippets.

@iamvee
Created February 11, 2020 22:57
Show Gist options
  • Save iamvee/dd6040367e399a9fc9e2c2057ea3cecb to your computer and use it in GitHub Desktop.
Save iamvee/dd6040367e399a9fc9e2c2057ea3cecb to your computer and use it in GitHub Desktop.
weather.sh
#!/bin/zsh
## Add these lines to your shell rc file (./*shrc)
function wttr () {
# $ wttr
# $ wttr tehran
# $ wttr almaty
curl "http://wttr.in/$1";
curl "http://v2.wttr.in/$1";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment