I found a function version of this version somewhere. Same thing except it defaults to my local area but can be overridden if you specify a different zip code.
weather() {
if [ $(command -v curl) ]; then
if ! (($#)); then
curl wttr.in/44113
else
curl wttr.in/$1
fi
else
echo "curl not installed. Aborting."
fi
}
I always set these because I’ve been burned too many times:
Turn on interactive mode for dangerous commands
alias cp='cp -iv' alias mv='mv -iv' alias rm='rm -iv'