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

Re: zsh startup files



On 2006-03-14 at 18:43 -0800, Bart Schaefer wrote:
> Back when I was using timeshared computers a lot, I had a .zlogout that
> cleared the screen and any scrollback buffers, but I removed that a long
> time ago; I haven't thought of any other good use for it.

Machine-rooms in third-party hosting facilities, when you've been in
logged in on a real virtual console.

I should probably get around to making it more portable to different TTY
naming schemes, but the very simple method works for me:
[[ $SHLVL -eq 1 && $TTY == /dev/ttyv* ]] && clear



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