Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: .zlogout not read



On Wed, May 13, 2009 at 3:59 AM, ugaciaka wrote:
> Hi,
>
> I want execeute a command (sudo -k) when I logout my session. I
> created .zlogout, after source .zlogout but I when close the shell
> (terminal in xfce) or type exit .zlogout not execute sudo -k.

.zlogout is only sourced when exiting a login shell, and terminal
emulators don't usually launch login shells.  Either configure your
terminal to always launch login shells or, better yet, configure sudo
to allocate tickets per-tty instead of per-user.  See man sudoers for
"tty_tickets".

~Matt



Messages sorted by: Reverse Date, Date, Thread, Author