Date: Wed, 29 Sep 2004 11:58:05 +0200 (CEST) From: Konrad Heuer <kheuer2@gwdg.de> To: Ion-Mihai Tetcu <itetcu@apropo.ro> Cc: freebsd-questions@freebsd.org Subject: Re: tcsh star-up files help needed Message-ID: <20040929115607.R69034@gwdu60.gwdg.de> In-Reply-To: <20040929125117.039c432d@it.buh.tecnik93.com> References: <20040928211614.244a7917@it.buh.tecnik93.com> <20040929125117.039c432d@it.buh.tecnik93.com>
index | next in thread | previous in thread | raw e-mail
On Wed, 29 Sep 2004, Ion-Mihai Tetcu wrote:
> On Wed, 29 Sep 2004 07:20:17 +0200 (CEST)
> Konrad Heuer <kheuer2@gwdg.de> wrote:
>
> > On Tue, 28 Sep 2004, Ion-Mihai Tetcu wrote:
> >
> > > Could someone explain to me what is the order tcsh's star-up file are
> > > processed ? The man page is rather unclear for me: The shell may read
> > > /etc/csh.login before instead of after /etc/csh.cshrc ....
> >
> > Normally, tcsh reads its start-up files in the following order:
> >
> > /etc/csh.cshrc
> > /etc/csh.login
> > ~/.tcshrc
> > ~/.cshrc
> > ~/.login
> >
> > You can check this by typing:
> >
> > echo $version
> >
> > If "lf" doesn't appear in the options list, the order given above is used.
>
> Thanks. This is the case.
> Are the file in /etc override by user files ?
Yes, system-wide settings can be overridden by user startup files.
> > > What I want and doesn't work if entered in /etc/csh.cshrc but works in
> > > ~/.cshrc, if possible, is to have the prompt for all users
> > >
> > > if (${TERM} == 'screen') then
> > > set SCREEN_NAME = "/${STY:e}"
> > > else
> > > set SCREEN_NAME = ''
> > > endif
> > >
> > > set prompt = ........${SCREEN_NAME}.....
> > >
> > > with the intent of having screen(1) session name somewhere in the prompt
> > > if the shell runs under screen or nothing if it is not under screen,
> > > without having to add the above lines to all users ~/.cshrc
> >
> > I'd check the contents of $TERM within /etc/csh.cshrc by echoing it to
> > make sure that it is set as expected. Did you?
>
> Now it works, donno why :)
Good news, nevertheless!
Regards
Konrad Heuer
GWDG, Am Fassberg, 37077 Goettingen, Germany, kheuer2@gwdg.de
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040929115607.R69034>
