From 6082210c5348babda2c8049752a42e76eeefa02b Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Wed, 20 Oct 2021 16:44:24 -0400 Subject: fix annoying tty bugs --- .zshenv | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to '.zshenv') 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 -- cgit v1.2.3