diff --git a/weather b/weather index 604f526..6e90c64 100755 --- a/weather +++ b/weather @@ -6,7 +6,6 @@ usage() { usage: $0 [-a KEY][-s QUERY | -z ZIPCODE][-u ][-p][-i][-l][-h] Queries OpenWeatherMapAPI for weather or lat/long - options: -a, --apikey set the api key to use to KEY -l, --location print the location being used @@ -276,7 +275,12 @@ display_forecast() { exit 1 fi - curl -fsSL "https://wttr.in/${LAT},${LON}" -o /tmp/weather + if [[ -n "$PRETTY" ]] ; then + # nerdfont + curl -fsSL "https://v2d.wttr.in/${LAT},${LON}" -o /tmp/weather + else + curl -fsSL "https://wttr.in/${LAT},${LON}" -o /tmp/weather + fi setsid -f st -e less -Srf /tmp/weather