dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit c564d18656fb82c51ca040c617f2da33241af4e2
parent dc5a9a8b16271c78cf369d343da46cea35a4b155
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Mon,  1 Jan 2018 19:05:21 -0500

Kill gpg-agent on SSH logout

Diffstat:
M.bash_logout | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/.bash_logout b/.bash_logout @@ -1,4 +1,11 @@ # # ~/.bash_logout # -[ $SHLVL -le 1 ] && clear +if [ $SHLVL -le 1 ] +then + if [[ -n "$SSH_TTY" ]] + then + killall gpg-agent + fi + clear +fi