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 /.zshenv | |
parent | reportbug don't cc me (diff) |
update kinits & wttr
Diffstat (limited to '.zshenv')
-rw-r--r-- | .zshenv | 13 |
1 files changed, 10 insertions, 3 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 |