Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: prompt and ssh
- X-seq: zsh-users 14145
- From: Michael Hernandez <sequethin@xxxxxxxxx>
- To: ugaciaka <ugaciaka@xxxxxxxxx>
- Subject: Re: prompt and ssh
- Date: Tue, 19 May 2009 12:58:24 -0400
- Cc: zsh-users@xxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=r29B+wzbRSQ1BLOHEjV4cq8aaed9F9Y5OCx/mcuZYQI=; b=GF4QOqLOZabhBqZ71mo3ZJTjHEiln8AF1VRpjAnGnhfn8kj0UQTq0JyzZaOVKeuo1f 3mxaEgDW9hKN/AOv3fhhqWr+Kt7hbunz9CFCefJDOZp+YVJrAFvFCGutMXJESJ6Vqf2t X9IpBYm0LR+MK7vNEH0R9CtfevYZwRhjklNlY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=DmnsFCDpehOnG13K/q6mOl9EcoNJdyfcIDiPAoQGCSxDlAOt/8b0UfVqRuRSlftzK5 0PMaKJSdLN8ztx+w/U8IxucB/v0+nH0hIpJiQ7n3oyYz3EIzTiNlyOs3tSFNFoAjSRxV C8Q7+g+7VhPtL9UxP9sWMDoPKTnpDdLVb08Pw=
- In-reply-to: <e7db6e960905190954j7be72739p6b521bca8e90fe7f@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <e7db6e960905190954j7be72739p6b521bca8e90fe7f@xxxxxxxxxxxxxx>
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