Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Differrent prompt for remote machines



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