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

help-circle










  • cheerupcharlietoLinux@lemmy.mlYour best terminal aliases
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    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
    }