From fc7fc47c946f49040df60dc3e3c4499399975125 Mon Sep 17 00:00:00 2001 From: Adam Hovorka Date: Sun, 30 Sep 2018 16:48:56 -0600 Subject: Add wttr.in ZSH function --- base/zsh/functions.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/base/zsh/functions.zsh b/base/zsh/functions.zsh index e867a73..f705d28 100644 --- a/base/zsh/functions.zsh +++ b/base/zsh/functions.zsh @@ -15,3 +15,7 @@ function trash { done } # Add this to your crontab: # 43 0 * * 3 find ~/.trash -mindepth 1 -mtime +90 -delete + +wttr() { + curl -q -H "Accept-Language: ${LANG%_*}" wttr.in/"${1:-Pleasant Grove}\?${2:-0q}" +} -- cgit v1.2.3-70-g09d2