aboutsummaryrefslogtreecommitdiff
path: root/dot_zshenv
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2021-12-13 16:07:35 -0500
committerRyan Kavanagh <rak@rak.ac>2021-12-13 16:07:36 -0500
commit61f89d0a3d43a835b333e76317d49027e5a4c06e (patch)
tree1c537dce87c7603cddec9e94ce8eeec7a1a09100 /dot_zshenv
parentLESS=-FQXR (diff)
Migrating to chezmoi
Diffstat (limited to 'dot_zshenv')
-rw-r--r--dot_zshenv25
1 files changed, 25 insertions, 0 deletions
diff --git a/dot_zshenv b/dot_zshenv
new file mode 100644
index 0000000..4d24e85
--- /dev/null
+++ b/dot_zshenv
@@ -0,0 +1,25 @@
+# for gpg-agent/pinentry to work, even in non-interactive shells
+export GPG_TTY="${TTY}"
+
+# Otherwise we cannot use ^o as a keybinding
+if [[ `uname` == "Darwin" ]]; then
+ stty discard undef
+fi
+
+aklogs () {
+ 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
+ done
+}
+
+kinits () {
+ kinit -r 200h -f rkavanag@ANDREW.CMU.EDU
+ kinit -r 200h -f rak@CLUB.CC.CMU.EDU
+}
+
+rkinits () {
+ 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
+}