From owner-freebsd-questions Tue Oct 8 19:07:12 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id TAA26736 for questions-outgoing; Tue, 8 Oct 1996 19:07:12 -0700 (PDT) Received: from cs.rice.edu (cs.rice.edu [128.42.1.30]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id TAA26731 for ; Tue, 8 Oct 1996 19:07:09 -0700 (PDT) Received: from asia.cs.rice.edu (asia.cs.rice.edu [128.42.1.167]) by cs.rice.edu (8.7.1/8.7.1) with ESMTP id VAA25524; Tue, 8 Oct 1996 21:07:06 -0500 (CDT) Received: (from cobbe@localhost) by asia.cs.rice.edu (8.7.3/8.7.3) id VAA12046; Tue, 8 Oct 1996 21:07:06 -0500 (CDT) Date: Tue, 8 Oct 1996 21:07:06 -0500 (CDT) Message-Id: <199610090207.VAA12046@asia.cs.rice.edu> From: Richard Cobbe To: sue@welearn.com.au Cc: freebsd-questions@FreeBSD.ORG Subject: Re: It's the little things... In-Reply-To: <199610090116.SAA12954@netcom12.netcom.com> References: <199610090116.SAA12954@netcom12.netcom.com> Reply-To: cobbe@cs.rice.edu Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Randall Raemon wrote on 10-8-1996: > In message <199610082159.HAA24542@mail.zip.com.au> > "Sue Blake" writes > > How can I set the prompt (to username and/or working directory... any > > damn thing other than the machine name)? I'm using tcsh for myself > > (set up with sysinstall's facility) and the default as root. I've > > systematically edited and retried every dot file in my dir and can't > > make it change. The files in /etc that look relevant are blank except for > > comments. Sorry; didn't catch this until the second go-round. With tcsh, the prompt can be configured by setting the shell's $prompt variable. I have mine set to '[%m (%l):%~]%# ', which has the following result: [minbar (ttyp1):~/Mail]> for normal users [minbar (ttyp1):/home/cobbe/Mail]# for root (if you do an su) (The tty section is useful when I'm using virtual consoles cause I have 6 under Linux and tend to get lost fairly easily.) Check out the section on the prompt shell variable in tcsh(1) for further info and lots more % codes. Good luck, RIchard