aboutsummaryrefslogtreecommitdiff
path: root/base/zsh
diff options
context:
space:
mode:
authorAdam Hovorka <[email protected]>2018-09-30 16:48:56 -0600
committerAdam Hovorka <[email protected]>2018-09-30 16:48:56 -0600
commitfc7fc47c946f49040df60dc3e3c4499399975125 (patch)
tree6540774d8282b0dd77233b4cf6266f919f989a9e /base/zsh
parent189738a11cab0657724d853ba1b0bb85a034e3bc (diff)
Add wttr.in ZSH function
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}"
+}