From 92d0cc2bdadeafec29bdb5f4528492b901d8a3e3 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Thu, 23 Mar 2017 15:49:04 -0400 Subject: rkinits --- .zshenv | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.zshenv b/.zshenv index 04367ab..8a55c57 100644 --- a/.zshenv +++ b/.zshenv @@ -3,3 +3,9 @@ aklogs () { KRB5CCNAME=`klist -l | grep $r | sed -e s'/.*:://g'` aklog -c $r -k $r done } +rkinits () { + for r in CS.CMU.EDU ANDREW.CMU.EDU; do + KRB5CCNAME=`klist -l | grep $r | sed -e s'/.*:://g'` kinit -R rkavanag@$r + done + aklogs +} -- cgit v1.2.3