From 58347fdfe21315ad3ccc0bd7c4703a8ec7aae797 Mon Sep 17 00:00:00 2001 From: tdback Date: Wed, 4 Dec 2024 18:50:37 -0500 Subject: initial commit to new repo --- weather | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 weather (limited to 'weather') diff --git a/weather b/weather new file mode 100755 index 0000000..c49e3ae --- /dev/null +++ b/weather @@ -0,0 +1,10 @@ +#!/bin/sh + +# weather: Quickly check the weather forecast. + +DEFAULT="grand+rapids" + +CITY=$(echo "$1" | tr ' ' '+') +: "${CITY:=$DEFAULT}" + +curl -s "https://wttr.in/$CITY" | head -n -2 -- cgit v1.2.3