zsh-users
 help / color / mirror / code / Atom feed
* Differrent prompt for remote machines
@ 2001-03-30  9:42 Dominik Vogt
  2001-03-30  9:59 ` Andrej Borsenkow
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Dominik Vogt @ 2001-03-30  9:42 UTC (permalink / raw)
  To: zsh-users

I want to solve the following problem:

  I'm often logged in to different machines that all share the
  same zsh configuration files (via ssh or telnet).  But I
  frequently forget on which machine I am, mainly because either
  I have the machine name in my promt for all machines or for no
  machine at all.  What I'd like to have is this:

    For the machine at which I logged in:

      <username> ...

    and

      <username>@<machine> ...

    for remote logins (and possibly the machine name in bright
    red for our server and in a different colour for other remote
    machines).

  Basically it breaks down to detecting if the shell runs on a
  local terminal or through a network connection.

Bye

Dominik ^_^  ^_^

--
Dominik Vogt, email: d.vogt@lifebits.de
LifeBits Aktiengesellschaft, Albrechtstr. 9, D-72072 Tuebingen
fon: ++49 (0) 7071/7965-0, fax: ++49 (0) 7071/7965-20


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2001-04-04 17:22 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-30  9:42 Differrent prompt for remote machines Dominik Vogt
2001-03-30  9:59 ` Andrej Borsenkow
2001-03-30 10:48   ` Dominik Vogt
2001-03-30 15:55     ` Bart Schaefer
2001-03-31 11:32 ` Zefram
2001-03-31 18:26   ` Stephane Bortzmeyer
2001-03-31 19:14   ` Bart Schaefer
2001-04-01  3:53     ` E. Jay Berkenbilt
2001-04-01  4:41       ` Bart Schaefer
2001-03-31 18:26 ` Stephane Bortzmeyer
2001-04-04 17:21   ` Dominik Vogt
2001-04-02 20:46 ` Matt Pharr

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).