This file contains hidden or 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
# WEATHER INFO ------------------------------------------------------------ | |
# Usage: | |
# $ weather [CITY_NAME] | |
# Examples: | |
# $ weather #returns current local weather | |
# $ weather "Porto Alegre" #returns Porto Alegre weather | |
function weather { | |
if [ -z "$1" ]; then | |
curl http://wttr.in/; |