Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Differrent prompt for remote machines
- X-seq: zsh-users 3782
- From: Stephane Bortzmeyer <stephane@xxxxxxxxxxx>
- To: d.vogt@xxxxxxxxxxx
- Subject: Re: Differrent prompt for remote machines
- Date: Sat, 31 Mar 2001 20:26:24 +0200
- Cc: zsh-users@xxxxxxxxxxxxxx
- In-reply-to: <20010330114228.O1115@xxxxxxxxxxx> (Dominik Vogt <d.vogt@xxxxxxxxxxx>'s message of Fri, 30 Mar 2001 11:42:28 +0200)
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Sender: stephane@xxxxxxxxxxx
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~'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author