blob: 787b5b7b494dbb4fcc68ed0e0fb354fb4173e655 (
plain) (
tree)
|
|
# 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
}
|