• 2 Posts
  • 7 Comments
Joined 1 year ago
cake
Cake day: July 2nd, 2023

help-circle








  • 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
    }