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

Re: Differrent prompt for remote machines



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