Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Differrent prompt for remote machines
- X-seq: zsh-users 3781
- From: Zefram <zefram@xxxxxxxx>
- To: d.vogt@xxxxxxxxxxx
- Subject: Re: Differrent prompt for remote machines
- Date: Sat, 31 Mar 2001 12:32:16 +0100 (BST)
- Cc: zsh-users@xxxxxxxxxxxxxx
- In-reply-to: <20010330114228.O1115@xxxxxxxxxxx> from Dominik Vogt at "Mar 30, 2001 11:42:28 am"
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Dominik Vogt wrote:
> Basically it breaks down to detecting if the shell runs on a
> local terminal or through a network connection.
if [[ $TTY == /dev/pts/* || $TTY == /dev/tty[a-z]* ]]; then
PS1='%n@%m> '
else
PS1='%n> '
fi
-zefram
Messages sorted by:
Reverse Date,
Date,
Thread,
Author