From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6167 invoked from network); 4 Apr 2001 17:22:27 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 4 Apr 2001 17:22:27 -0000 Received: (qmail 26171 invoked by alias); 4 Apr 2001 17:22:11 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3794 Received: (qmail 26159 invoked from network); 4 Apr 2001 17:22:10 -0000 X-Authentication-Warning: DarkSun.local: luthien set sender to dominik.vogt@gmx.de using -f Date: Wed, 4 Apr 2001 19:21:50 +0200 From: Dominik Vogt To: zsh-users@sunsite.auc.dk Subject: Re: Differrent prompt for remote machines Message-ID: <20010404192150.D781@gmx.de> Reply-To: dominik.vogt@gmx.de Mail-Followup-To: zsh-users@sunsite.auc.dk References: <20010330114228.O1115@lifebits.de> <200103311826.UAA10128@ludwigV.sources.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: <200103311826.UAA10128@ludwigV.sources.org>; from stephane@sources.org on Sat, Mar 31, 2001 at 08:26:24PM +0200 X-Sender: 510058704406-0001@t-dialin.net On Sat, Mar 31, 2001 at 08:26:24PM +0200, Stephane Bortzmeyer wrote: > On Friday 30 March 2001, at 11 h 42, the keyboard of Dominik Vogt > wrote: > > > For the machine at which I logged in: > > > > ... > > > > and > > > > @ ... > > > > for remote logins > > If all the remote connections use SSH (which is highly recommended anyway), > here is what I use: > > if [ -z "$SSH_CLIENT" ]; then > export PROMPT='%# ' > else > export PROMPT='%m: %# ' > fi > export RPROMPT='%4~' Thanks for all the replies. Currently I use the 'who -m' but I'll possibly revert to using something from the ssh environment. Bye Dominik ^_^ ^_^ -- Dominik Vogt, dominik.vogt@gmx.de Reply-To: dominik.vogt@gmx.de