[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [F] "Clear" auf der Konsole beim ausloggen



* Robert Grimm <lists@news.robgri.de> wrote:
> Jens Schüßler <jgs@trash.net> wrote:
> > Was ist $SHLVL?
> 
> man bash
> #v+
> [rob@woody:~]$ echo $SHLVL
> 1
> [rob@woody:~]$ bash
> [rob@woody:~]$ echo $SHLVL
> 2
> [rob@woody:~]$
> #v-

Danke. Über die Variable bin ich auch noch nie gestolpert.

> Diese .bash_logout kommt übrigens aus /etc/skel.
> #v+
> [rob@woody:~]$ dlocate /etc/skel/.bash_logout
> bash: /etc/skel/.bash_logout
> #v-

Kein Wunder, ich hatte noch die alte Variante in meinem SHOME
,----
| case "`tty`" in
|     /dev/tty[0-9]) clear
| esac
`----

Gruß
Jens


Reply to: