aboutsummaryrefslogtreecommitdiff
path: root/.zsh
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2021-10-20 16:44:24 -0400
committerRyan Kavanagh <rak@rak.ac>2021-10-20 16:44:24 -0400
commit6082210c5348babda2c8049752a42e76eeefa02b (patch)
tree7ab77b1605b337e9a55d852a0606095d3e9668b2 /.zsh
parentuse w3m for dumping html email (diff)
fix annoying tty bugs
Diffstat (limited to '')
-rw-r--r--.zshenv8
1 files changed, 8 insertions, 0 deletions
diff --git a/.zshenv b/.zshenv
index 4075470..c3719cf 100644
--- a/.zshenv
+++ b/.zshenv
@@ -1,3 +1,11 @@
+# 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 CS.CMU.EDU 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