diff options
Diffstat (limited to '')
-rw-r--r-- | .zshenv | 13 | ||||
-rw-r--r-- | .zshrc | 7 |
2 files changed, 16 insertions, 4 deletions
@@ -1,11 +1,18 @@ aklogs () { - for r in CS.CMU.EDU ANDREW.CMU.EDU; do + for r in CS.CMU.EDU ANDREW.CMU.EDU CLUB.CC.CMU.EDU; do KRB5CCNAME=`KRB5CCNAME=DIR:$HOME/.cache/krb5cc klist -l | grep $r | sed -e s'/.*:://g'` aklog -c $r -k $r + if test "x$r" = "xCS.CMU.EDU"; then + KRB5CCNAME=`KRB5CCNAME=DIR:$HOME/.cache/krb5cc klist -l | grep $r | sed -e s'/.*:://g'` aklog -c club.cc.cmu.edu + fi done - KRB5CCNAME=DIR:$HOME/.cache/krb5cc aklog club.cc.cmu.edu +} +kinits () { + kinit -r 200h -f rkavanag@CS.CMU.EDU + kinit -r 200h -f rkavanag@ANDREW.CMU.EDU + kinit -r 200h -f rak@CLUB.CC.CMU.EDU } rkinits () { - for r in CS.CMU.EDU ANDREW.CMU.EDU; do + for r in CS.CMU.EDU ANDREW.CMU.EDU CLUB.CC.CMU.EDU; do KRB5CCNAME=`KRB5CCNAME=DIR:$HOME/.cache/krb5cc klist -l | grep $r | sed -e s'/.*:://g'` kinit -R rkavanag@$r done KRB5CCNAME=DIR:$HOME/.cache/krb5cc aklogs @@ -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=$@" |