Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Sep 2004 21:16:14 +0300
From:      Ion-Mihai Tetcu <itetcu@people.tecnik93.com>
To:        freebsd-questions@freebsd.org
Subject:   tcsh star-up files help needed
Message-ID:  <20040928211614.244a7917@it.buh.tecnik93.com>

next in thread | raw e-mail | index | archive | help
Hi,


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 ....


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  = ''
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


Thanks,

-- 
IOnut
Unregistered ;) FreeBSD "user"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040928211614.244a7917>