zsh weather/moon/joke

This commit is contained in:
2026-01-29 15:51:30 +08:00
parent 165681a18e
commit 0a6abee3f4

View File

@@ -105,3 +105,8 @@ fi
# Make zsh know about hosts already accessed by SSH
zstyle -e ':completion:*:(ssh|scp|sftp|rsh|rsync):hosts' hosts 'reply=(${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2)(N) /dev/null)"}%%[# ]*}//,/ })'
alias weather="curl wttr.in"
alias moon="curl wttr.in/Moon"
alias quote="curl https://api.quotable.io/random | from json | get content"
alias joke="curl -H "Accept: application/json" https://icanhazdadjoke.com/ | from json | get joke"