From owner-freebsd-questions@FreeBSD.ORG Tue Sep 28 18:16:17 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 E141516A4CE for ; Tue, 28 Sep 2004 18:16:17 +0000 (GMT) Received: from smtp.rdsnet.ro (smtp.rdsmail.ro [193.231.236.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 03A8C43D4C for ; Tue, 28 Sep 2004 18:16:17 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: (qmail 32449 invoked by uid 89); 28 Sep 2004 18:16:16 -0000 Received: from unknown (HELO it.buh.tecnik93.com) (81.196.204.98) by 0 with SMTP; 28 Sep 2004 18:16:16 -0000 Received: from it.buh.tecnik93.com (localhost.buh.tecnik93.com [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with SMTP id B42ED10A for ; Tue, 28 Sep 2004 21:16:14 +0300 (EEST) Date: Tue, 28 Sep 2004 21:16:14 +0300 From: Ion-Mihai Tetcu To: freebsd-questions@freebsd.org Message-ID: <20040928211614.244a7917@it.buh.tecnik93.com> X-Mailer: Sylpheed-Claws 0.9.12a (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: 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: Tue, 28 Sep 2004 18:16:18 -0000 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"