diff options
author | tdback <tyler@tdback.net> | 2025-01-27 22:45:38 -0500 |
---|---|---|
committer | tdback <tyler@tdback.net> | 2025-01-27 22:45:38 -0500 |
commit | 303aa81d25df5f96ce980f2d38efb4a8ffc8faf7 (patch) | |
tree | 9bf4a0330986a6b37549b1da8fd5a7bd77fcfa94 /weather |
initial commit
Diffstat (limited to 'weather')
-rwxr-xr-x | weather | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |