From: Dominik Vogt <dominik.vogt@gmx.de>
To: zsh-users@sunsite.auc.dk
Subject: Re: Differrent prompt for remote machines
Date: Wed, 4 Apr 2001 19:21:50 +0200 [thread overview]
Message-ID: <20010404192150.D781@gmx.de> (raw)
In-Reply-To: <200103311826.UAA10128@ludwigV.sources.org>; from stephane@sources.org on Sat, Mar 31, 2001 at 08:26:24PM +0200
On Sat, Mar 31, 2001 at 08:26:24PM +0200, Stephane Bortzmeyer wrote:
> On Friday 30 March 2001, at 11 h 42, the keyboard of Dominik Vogt
> <d.vogt@lifebits.de> wrote:
>
> > For the machine at which I logged in:
> >
> > <username> ...
> >
> > and
> >
> > <username>@<machine> ...
> >
> > for remote logins
>
> If all the remote connections use SSH (which is highly recommended anyway),
> here is what I use:
>
> if [ -z "$SSH_CLIENT" ]; then
> export PROMPT='%# '
> else
> export PROMPT='%m: %# '
> fi
> export RPROMPT='%4~'
Thanks for all the replies. Currently I use the 'who -m' but I'll
possibly revert to using something from the ssh environment.
Bye
Dominik ^_^ ^_^
--
Dominik Vogt, dominik.vogt@gmx.de
Reply-To: dominik.vogt@gmx.de
next prev parent reply other threads:[~2001-04-04 17:22 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-30 9:42 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 [this message]
2001-04-02 20:46 ` Matt Pharr
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=20010404192150.D781@gmx.de \
--to=dominik.vogt@gmx.de \
--cc=zsh-users@sunsite.auc.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).