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

Re: prompt and ssh



[ Quoting ugaciaka in "prompt and ssh"... ]
> 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?

if you login remotely with ssh, SSH_CLIENT gets set, so you can check
that in your prompt.

grtz Miek

Attachment: signature.asc
Description: Digital signature



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