From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28594 invoked from network); 31 Mar 2001 11:32:44 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 31 Mar 2001 11:32:44 -0000 Received: (qmail 12385 invoked by alias); 31 Mar 2001 11:32:24 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3781 Received: (qmail 12369 invoked from network); 31 Mar 2001 11:32:23 -0000 Subject: Re: Differrent prompt for remote machines In-Reply-To: <20010330114228.O1115@lifebits.de> from Dominik Vogt at "Mar 30, 2001 11:42:28 am" To: d.vogt@lifebits.de Date: Sat, 31 Mar 2001 12:32:16 +0100 (BST) CC: zsh-users@sunsite.auc.dk X-Mailer: ELM [version 2.4ME+ PL66 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: From: Zefram Dominik Vogt wrote: > Basically it breaks down to detecting if the shell runs on a > local terminal or through a network connection. if [[ $TTY == /dev/pts/* || $TTY == /dev/tty[a-z]* ]]; then PS1='%n@%m> ' else PS1='%n> ' fi -zefram