aboutsummaryrefslogtreecommitdiff
path: root/base/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'base/zsh')
-rw-r--r--base/zsh/functions.zsh4
1 files changed, 4 insertions, 0 deletions
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}"
+}