diff options
author | Ryan Kavanagh <rak@rak.ac> | 2021-06-16 22:30:18 -0400 |
---|---|---|
committer | Ryan Kavanagh <rak@rak.ac> | 2021-06-16 22:30:18 -0400 |
commit | 207d4739fdb65c71f42a270952a80dbe6aee602f (patch) | |
tree | 625f2889d91022b49008064e854f27f6a4f4f332 /.zshrc | |
parent | reportbug don't cc me (diff) |
update kinits & wttr
Diffstat (limited to '')
-rw-r--r-- | .zshrc | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -106,7 +106,6 @@ alias vi='vim' alias sm='tmux attach -t mail || tmux -f ${HOME}/.tmux-mail.conf attach -t mail' alias remote_3051='ssh -f -N -q -L 6301:192.168.1.207:631 ryan@ryanak.ca' alias sshfw='ssh -oForwardAgent=yes' -alias kinits="kinit -r 200h -f rkavanag@CS.CMU.EDU && kinit -r 200h -f rkavanag@ANDREW.CMU.EDU" alias slpr="lpr -P scs_public -o Staple=1Staple\(Left\) -o KMDuplex=True" # END LOCAL @@ -527,6 +526,12 @@ launchpad.project.search() { # Others. # +wttr() { + local request="wttr.in/${1-Pittsburgh}" + [ "$(tput cols)" -lt 125 ] && request+='?n' + curl -H "Accept-Language: ${LANG%_*}" --compressed "$request" +} + google() { # Google search. w3m "http://www.google.com/search?q=$@" |