From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24244 invoked from network); 30 Mar 2001 09:43:15 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 30 Mar 2001 09:43:15 -0000 Received: (qmail 2063 invoked by alias); 30 Mar 2001 09:42:59 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3775 Received: (qmail 2052 invoked from network); 30 Mar 2001 09:42:59 -0000 X-Authentication-Warning: erdbeere.lifebits.local: luthien set sender to dvogt@lifebits.de using -f Date: Fri, 30 Mar 2001 11:42:28 +0200 From: Dominik Vogt To: zsh-users@sunsite.auc.dk Subject: Differrent prompt for remote machines Message-ID: <20010330114228.O1115@lifebits.de> Reply-To: d.vogt@lifebits.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: dvogt@lifebits.de X-Sender: 520008918237-0001@t-dialin.net I want to solve the following problem: 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 @ ... for remote logins (and possibly the machine name in bright red for our server and in a different colour for other remote machines). Basically it breaks down to detecting if the shell runs on a local terminal or through a network connection. Bye Dominik ^_^ ^_^ -- Dominik Vogt, email: d.vogt@lifebits.de LifeBits Aktiengesellschaft, Albrechtstr. 9, D-72072 Tuebingen fon: ++49 (0) 7071/7965-0, fax: ++49 (0) 7071/7965-20