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, 3 insertions, 1 deletions
diff --git a/base/zsh/functions.zsh b/base/zsh/functions.zsh
index 9f02ffa..4419c6e 100644
--- a/base/zsh/functions.zsh
+++ b/base/zsh/functions.zsh
@@ -17,8 +17,10 @@ function trash {
# 43 0 * * 3 find ~/.trash -mindepth 1 -mtime +90 -delete
wttr() {
+ if [[ -z "$1$2" ]]; then 2="m0q"
+ elif [[ -z "$2" ]]; then echo; fi
curl -q -s --compressed -H "Accept-Language: ${LANG%_*}" \
- "https://wttr.in/${1:-Pleasant Grove}?${2:-0q}"
+ "https://wttr.in/${1:-Pleasant Grove}?${2:-m0Q}"
# "format=%l%0A%c+%t+%w+%m"
}