Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: hostname in prompt
- X-seq: zsh-users 4087
- From: Richard Curnow <Richard.Curnow@xxxxxx>
- To: wilke@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: hostname in prompt
- Date: Mon, 6 Aug 2001 13:53:47 +0100
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <NEBBKDEJGECEELADOJNLGEILCEAA.wilke@xxxxxxxxxxxxxxxxxxxx>; from wilke@xxxxxxxxxxxxxxxxxxxx on Mon, Aug 06, 2001 at 01:32:11PM +0200
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Recieved: from Richard.Curnow@xxxxxx by popov with local (Exim 3.03 #5) id 15TjtD-0007bN-00; Mon, 06 Aug 2001 13:53:47 +0100
- References: <NEBBKDEJGECEELADOJNLGEILCEAA.wilke@xxxxxxxxxxxxxxxxxxxx>
On Mon, Aug 06, 2001 at 01:32:11PM +0200, wilke@xxxxxxxxxxxxxxxxxxxx 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@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
and by night >>---richard.curnow@xxxxxxxxxxxx://go.to/richard.curnow/---
Messages sorted by:
Reverse Date,
Date,
Thread,
Author