zsh-users
 help / color / mirror / code / Atom feed
From: Eric Smith <eric.smith@fruitcom.com>
To: Markus Wilke <wilke@temf.tu-darmstadt.de>
Cc: zsh-users@sunsite.dk
Subject: Re: hostname in prompt
Date: Mon, 6 Aug 2001 15:02:31 +0200	[thread overview]
Message-ID: <20010806150231.B7036@apple.fruitcom.com> (raw)
In-Reply-To: <NEBBKDEJGECEELADOJNLGEILCEAA.wilke@temf.tu-darmstadt.de>; from wilke@temf.tu-darmstadt.de on Mon, Aug 06, 2001 at 01:32:11PM +0200

According to Markus Wilke on Mon, Aug 06, 2001 at 01:32:11PM +0200:
| 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).
| 
| Had anybody else encountered this phenomena?

I have:

[ $HOSTNAME = 'apple.fruitcom.com' ] && {
PS1="[%B%n%b@%m %c] %B `echo $WINDOW`%b $ "
}
[ $HOSTNAME = 'plum.fruitcom.com' ] && {
PS1="[%n@%B%m%b %c] %B`echo $WINDOW`%b $ "
}

the first emphasises the $USER and the second the $HOST.
In an xterm the emphasis can show up in color.

-- 
Eric Smith


  parent reply	other threads:[~2001-08-06 13:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2001-08-06 12:09 Markus Wilke
2001-08-06 15:54 Markus Wilke

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=20010806150231.B7036@apple.fruitcom.com \
    --to=eric.smith@fruitcom.com \
    --cc=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).