aboutsummaryrefslogtreecommitdiff
path: root/dot_zshenv
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dot_zshenv26
1 files changed, 26 insertions, 0 deletions
diff --git a/dot_zshenv b/dot_zshenv
new file mode 100644
index 0000000..787b5b7
--- /dev/null
+++ b/dot_zshenv
@@ -0,0 +1,26 @@
+# for gpg-agent/pinentry to work, even in non-interactive shells
+export GPG_TTY="${TTY}"
+
+# Otherwise we cannot use ^o as a keybinding
+case `uname` in
+ Darwin|OpenBSD)
+ stty discard undef
+ ;;
+esac
+
+aklogs () {
+ for r in CLUB.CC.CMU.EDU; do
+ KRB5CCNAME=`KRB5CCNAME=DIR:$HOME/.cache/krb5cc klist -l | grep $r | sed -e s'/.*:://g'` aklog -c $r -k $r
+ done
+}
+
+kinits () {
+ kinit -r 200h -f rak@CLUB.CC.CMU.EDU
+}
+
+rkinits () {
+ for r in 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
+}