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

Re: Differrent prompt for remote machines



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