Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Differrent prompt for remote machines
- X-seq: zsh-users 3794
- From: Dominik Vogt <dominik.vogt@xxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: Differrent prompt for remote machines
- Date: Wed, 4 Apr 2001 19:21:50 +0200
- In-reply-to: <200103311826.UAA10128@xxxxxxxxxxxxxxxxxxx>; from stephane@xxxxxxxxxxx on Sat, Mar 31, 2001 at 08:26:24PM +0200
- Mail-followup-to: zsh-users@xxxxxxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20010330114228.O1115@xxxxxxxxxxx> <200103311826.UAA10128@xxxxxxxxxxxxxxxxxxx>
- Reply-to: dominik.vogt@xxxxxx
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@xxxxxxxxxxx> 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@xxxxxx
Reply-To: dominik.vogt@xxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author