Date: Mon, 14 Sep 1998 20:03:07 -0500 From: Dan Nelson <dnelson@emsphone.com> To: Malartre <malartre@aei.ca> Cc: Jim Holthaus <jim@holthaus.com>, Slyce <slyce@onramp.net>, freebsd-questions@FreeBSD.ORG Subject: Re: WHY? WAS:Clear screen before login... Message-ID: <19980914200307.A20197@emsphone.com> In-Reply-To: <35FDBA86.A665A32D@aei.ca>; from "Malartre" on Mon Sep 14 20:53:26 GMT 1998 References: <35FC33DA.76FDBB64@onramp.net> <v04003a04b2224f539b6c@[192.168.2.3]> <19980914001932.A6503@emsphone.com> <35FD8866.FC3A76F0@aei.ca> <19980914163455.A18000@emsphone.com> <35FDBA86.A665A32D@aei.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Sep 14), Malartre said: > Dan Nelson wrote: > <BIG SNIP> > > the screen by putting a "clear" comment on their ~/.logout script. > </BIG SNIP> > > I have created a .logout with the clear command on the first line. > But how can I make bash/sh/csh understand than they need to read > .logout when they receive the exit command? >From the man pages: ( csh ) When a login shell terminates it executes commands from the files .logout in the user's home directory and /etc/csh.logout. ( bash ) On exit: if ~/.bash_logout exists, source it. ( sh ) doesn't seem to have a logout script, but you could always simulate one by putting logout() { clear ; exit } in your ~/.profile. ( zsh ) ~/.zlogout /etc/zlogout Since this is a per-user thing, and since each user only has one login shell, you only have to create one of the logout scripts. -Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980914200307.A20197>