From owner-freebsd-questions@FreeBSD.ORG Wed Sep 29 05:20:29 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D11CD16A4CE for ; Wed, 29 Sep 2004 05:20:29 +0000 (GMT) Received: from gwdu60.gwdg.de (gwdu60.gwdg.de [134.76.8.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id C292843D5C for ; Wed, 29 Sep 2004 05:20:28 +0000 (GMT) (envelope-from kheuer2@gwdg.de) Received: from gwdu60.gwdg.de (localhost [127.0.0.1]) by gwdu60.gwdg.de (8.12.11/8.12.8) with ESMTP id i8T5KHFZ076870; Wed, 29 Sep 2004 07:20:17 +0200 (CEST) (envelope-from kheuer2@gwdg.de) Received: from localhost (kheuer2@localhost)i8T5KHUA076867; Wed, 29 Sep 2004 07:20:17 +0200 (CEST) X-Authentication-Warning: gwdu60.gwdg.de: kheuer2 owned process doing -bs Date: Wed, 29 Sep 2004 07:20:17 +0200 (CEST) From: Konrad Heuer To: Ion-Mihai Tetcu In-Reply-To: <20040928211614.244a7917@it.buh.tecnik93.com> Message-ID: <20040929071316.V69034@gwdu60.gwdg.de> References: <20040928211614.244a7917@it.buh.tecnik93.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: tcsh star-up files help needed X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2004 05:20:29 -0000 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. > 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 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? Regards Konrad Heuer GWDG, Am Fassberg, 37077 Goettingen, Germany, kheuer2@gwdg.de