aboutsummaryrefslogtreecommitdiff
path: root/.zsh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.zshenv5
-rw-r--r--.zshrc3
2 files changed, 6 insertions, 2 deletions
diff --git a/.zshenv b/.zshenv
new file mode 100644
index 0000000..04367ab
--- /dev/null
+++ b/.zshenv
@@ -0,0 +1,5 @@
+aklogs () {
+ for r in CS.CMU.EDU ANDREW.CMU.EDU; do
+ KRB5CCNAME=`klist -l | grep $r | sed -e s'/.*:://g'` aklog -c $r -k $r
+ done
+}
diff --git a/.zshrc b/.zshrc
index 2867da5..e16b12b 100644
--- a/.zshrc
+++ b/.zshrc
@@ -106,8 +106,7 @@ 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 mail="RLWRAP_FILTERDIR=${HOME}/.rlwrap rlwrap -z mail_filter mail"
-alias kinits="kinit -r 200h -f rkavanag && kinit -r 200h -f rkavanag@ANDREW.CMU.EDU"
-alias aklogs="aklog CS.CMU.EDU && aklog ANDREW.CMU.EDU"
+alias kinits="kinit -r 200h -f rkavanag@CS.CMU.EDU && kinit -r 200h -f rkavanag@ANDREW.CMU.EDU"
# END LOCAL