nerdfont support

This commit is contained in:
spinach 2023-02-09 23:09:08 -05:00
parent c61de6a572
commit e990b13ea9

View File

@ -6,7 +6,6 @@ usage() {
usage: $0 [-a KEY][-s QUERY | -z ZIPCODE][-u <c|f>][-p][-i][-l][-h] usage: $0 [-a KEY][-s QUERY | -z ZIPCODE][-u <c|f>][-p][-i][-l][-h]
Queries OpenWeatherMapAPI for weather or lat/long Queries OpenWeatherMapAPI for weather or lat/long
options: options:
-a, --apikey set the api key to use to KEY -a, --apikey set the api key to use to KEY
-l, --location print the location being used -l, --location print the location being used
@ -276,7 +275,12 @@ display_forecast() {
exit 1 exit 1
fi 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 setsid -f st -e less -Srf /tmp/weather