From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1909 invoked from network); 6 Aug 2001 12:54:42 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 6 Aug 2001 12:54:42 -0000 Received: (qmail 16656 invoked by alias); 6 Aug 2001 12:54:22 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4087 Received: (qmail 16644 invoked from network); 6 Aug 2001 12:54:20 -0000 Recieved: from Richard.Curnow@st.com by popov with local (Exim 3.03 #5) id 15TjtD-0007bN-00; Mon, 06 Aug 2001 13:53:47 +0100 Date: Mon, 6 Aug 2001 13:53:47 +0100 From: Richard Curnow To: wilke@temf.tu-darmstadt.de Cc: zsh-users@sunsite.dk Subject: Re: hostname in prompt Message-ID: <20010806135347.C20990@popov.bri.st.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i-nntp In-Reply-To: ; from wilke@temf.tu-darmstadt.de on Mon, Aug 06, 2001 at 01:32:11PM +0200 On Mon, Aug 06, 2001 at 01:32:11PM +0200, wilke@temf.tu-darmstadt.de wrote: > Hello everyone, > > I updated my zsh-3.1.9 to 4.0.2 on a Solaris 2.6 box, but now my prompt is > not working correctly any more. I have the hostname in the prompt, and now > instead of the hostname "SunOS" appears (regardless on what solaris machine > zsh runs). > I have the hostname successfully appearing in my prompt. In my .zshrc there is PROMPT="%t-%m-%?-%h-%# " if [ ${+CLEARCASE_ROOT} = 1 ]; then VIEWNAME="${CLEARCASE_ROOT:t}" RPROMPT=" [${VIEWNAME}]-%60<\<**<%~" else RPROMPT=" %80<\<**<%~" fi So at the left margin I have - time of day - hostname - exit status of last cmd - history entry number - % or # and at the right margin I have the tail of the current directory name, prefixed with the ClearCase view I'm in inside [..] if I am actually inside a view. Are you using the hostname command rather than %m to try to do this? -- Richard Curnow---by day : SuperH Core Architecture at STMicroelectronics curnowr@bristol.st.com---------www.superh.com-------------www.st.com---- and by night >>---richard.curnow@go.to---http://go.to/richard.curnow/---