From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3362 invoked from network); 2 Apr 2001 20:47:14 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 2 Apr 2001 20:47:14 -0000 Received: (qmail 17287 invoked by alias); 2 Apr 2001 20:46:43 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3791 Received: (qmail 17269 invoked from network); 2 Apr 2001 20:46:42 -0000 To: zsh-users@sunsite.auc.dk Subject: Re: Differrent prompt for remote machines References: <20010330114228.O1115@lifebits.de> X-Face: C!.oGaE]n@p)VF9Ss3]f'|<)kRrtpG)^^b^X-3_zhUHp\jBj29jaoTItqWR>mHa+v-{/!jx7OA@!cV0>Fm-b:zEL<`oOXG[BFQ\ Date: 02 Apr 2001 13:46:39 -0700 In-Reply-To: <20010330114228.O1115@lifebits.de> (Dominik Vogt's message of "Fri, 30 Mar 2001 11:42:28 +0200") Message-ID: User-Agent: Gnus/5.090001 (Oort Gnus v0.01) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Dominik Vogt writes: > I'm often logged in to different machines that all share the > same zsh configuration files (via ssh or telnet). But I > frequently forget on which machine I am, mainly because either > I have the machine name in my promt for all machines or for no > machine at all. What I'd like to have is this: > > For the machine at which I logged in: > > ... > > and > > @ ... I've got the following, which seems to catch that well in my setup, at least. if [[ $SSH_CLIENT = *.* || $REMOTEHOST = *.* ]] then PROMPT='<%m> %B%#%b ' else PROMPT='%B%#%b ' fi -matt -- Matt Pharr | Exluna, Inc. | =============================================================================== In a cruel and evil world, being cynical can allow you to get some entertainment out of it. --Daniel Waters