From: "Markus Wilke" <wilke@temf.tu-darmstadt.de>
To: <zsh-users@sunsite.dk>
Subject: Re: hostname in prompt
Date: Mon, 6 Aug 2001 14:09:13 +0200 [thread overview]
Message-ID: <NEBBKDEJGECEELADOJNLOEIMCEAA.wilke@temf.tu-darmstadt.de> (raw)
>> 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/---
No, I am using %m:
RPROMPT=$'%{\e[1;31m%}[%m]%{\e[0m%}' # prompt for right side of screen
(the escape sequences are for colouring the prompt).
BTW, of course the command hostname works fine. My prompts also worked fine
in zsh-3.1.9.
Debugging zsh is quite hard for me, because of the hash table stuff inside,
so I didn't get any clues in this way.
Any more ideas?
========================================================================
Dipl.-Ing. Markus Wilke
Darmstadt Univ. of Technology, FG Theorie Elektromagnetischer Felder
Schlossgartenstr. 8, D-64289 Darmstadt, Germany
------------------------------------------------------------------------
fon: +49 6151 162361 fax: +49 6151 164611
mail: wilke@temf.tu-darmstadt.de www: www.temf.de
------------------------------------------------------------------------
Hi, I´m a .signature antivirus, copy me in your ~/.signature file to
protect your system.
========================================================================
next reply other threads:[~2001-08-06 13:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-06 12:09 Markus Wilke [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-08-06 15:54 Markus Wilke
2001-08-06 11:32 Markus Wilke
2001-08-06 12:53 ` Richard Curnow
2001-08-06 16:22 ` Peter Stephenson
2001-08-06 13:02 ` Eric Smith
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=NEBBKDEJGECEELADOJNLOEIMCEAA.wilke@temf.tu-darmstadt.de \
--to=wilke@temf.tu-darmstadt.de \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).