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

Re: prompt and ssh



On Tue, 2009-05-19 at 18:54 +0200, ugaciaka wrote:
> Hi,
> 	
> I would like to change the type of zsh prompt the remote client (ssh):
> if I connected remotely show differently prompt...
> 
> What kind of condition if I can put on PS1?
> thanks


I would just check $HOST and change the prompt accordingly

if [[ $HOST == "remote_host_name" ]]
then
  # special prompt and maybe other host-specific stuff
fi


--Mike H




Messages sorted by: Reverse Date, Date, Thread, Author