Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 May 2009 21:53:10 +0200
From:      Emiel van de Laar <emiel@vandelaar.name>
To:        gabe g <johndoeismyname@gmail.com>
Cc:        jwdevel@gmail.com, freebsd-questions@freebsd.org
Subject:   Re: clear old output in login screen?
Message-ID:  <847CE7F3-2961-41B9-9A94-2F3520C9F773@vandelaar.name>
In-Reply-To: <fc6993210905031248r6d7e4ee5vdcf14f6454725fec@mail.gmail.com>
References:  <fa8771800905031146v51a8b752ra125f68a2520da4f@mail.gmail.com> <fc6993210905031248r6d7e4ee5vdcf14f6454725fec@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On May 3, 2009, at 9:48 PM, gabe g wrote:

> Hey John,
>      In order to achieve this, there are two methods that I know of,
> however, they are only tested in the Bourne and Bourne Again shells.
>
> clear && logout                 # Bourne Again (Bash) Shell
> clear && exit                     # Bourne (sh) Shell
>
> You may have to try similar commands (specific for that shell) for  
> shells
> that are not Bourne-derived, but one of these two commands should  
> almost
> always work.

Hello,

zsh has ".zlogout" which gets read/executed when the shell exits. I  
have the
following setup:

~ % cat ~/.zlogout
clear

Perhaps other shells have a similar feature.

Regards,

  - Emiel




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?847CE7F3-2961-41B9-9A94-2F3520C9F773>