aboutsummaryrefslogtreecommitdiff
path: root/.zshenv
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2021-10-21 18:54:16 -0400
committerRyan Kavanagh <rak@rak.ac>2021-10-21 18:54:16 -0400
commit5d808c5c6343c36eb577b0f2915ebd587e1d6265 (patch)
treee2be217dc3bf5905aa1138d86eee0022684afb88 /.zshenv
parent.tmux dropped (diff)
parentimprovements to tmcg (diff)
Merge remote-tracking branch 'refs/remotes/origin/master'
Diffstat (limited to '.zshenv')
-rw-r--r--.zshenv10
1 files changed, 4 insertions, 6 deletions
diff --git a/.zshenv b/.zshenv
index c3719cf..4d24e85 100644
--- a/.zshenv
+++ b/.zshenv
@@ -7,20 +7,18 @@ if [[ `uname` == "Darwin" ]]; then
fi
aklogs () {
- for r in CS.CMU.EDU ANDREW.CMU.EDU CLUB.CC.CMU.EDU; do
+ for r in 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
}
+
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 rkavanag@CS.CMU.EDU rkavanag@ANDREW.CMU.EDU rak@CLUB.CC.CMU.EDU; do
+ for r in rkavanag@ANDREW.CMU.EDU rak@CLUB.CC.CMU.EDU; do
KRB5CCNAME=`KRB5CCNAME=DIR:$HOME/.cache/krb5cc klist -l | grep $r | sed -e s'/.*:://g'` kinit -R $r
done
KRB5CCNAME=DIR:$HOME/.cache/krb5cc aklogs