Created
February 11, 2020 22:57
-
-
Save iamvee/dd6040367e399a9fc9e2c2057ea3cecb to your computer and use it in GitHub Desktop.
weather.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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