From owner-freebsd-questions@FreeBSD.ORG Fri Feb 27 10:06:22 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 48EED16A4CE for ; Fri, 27 Feb 2004 10:06:22 -0800 (PST) Received: from clanbuckbuck.org (c-24-17-98-189.client.comcast.net [24.17.98.189]) by mx1.FreeBSD.org (Postfix) with SMTP id EFA7C43D45 for ; Fri, 27 Feb 2004 10:06:21 -0800 (PST) (envelope-from ryallsd@datasphereweb.com) Received: (qmail 99428 invoked from network); 27 Feb 2004 18:06:21 -0000 Received: from unknown (HELO RYALLS1) (131.107.3.70) by c-24-17-98-189.client.comcast.net with SMTP; 27 Feb 2004 18:06:21 -0000 From: "Derrick Ryalls" To: "'Steven N. Fettig'" , Date: Fri, 27 Feb 2004 10:06:17 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <403F69E6.9050701@stevenfettig.com> Importance: Normal Subject: RE: Hostname in shell (bash)? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Feb 2004 18:06:22 -0000 > Hi all, > > I searched the archives and documents on bash, but I can't figure out > how to put the hostname of the workstation I am on before the > $ of the > shell/command line. Does anyone know how to add the hostname > (preferably the first part - i.e. www, db1, etc) to the > command line for > bash 2.x? I have this in my .bashrc and .bash_profile files (\h is hostname): # set prompt PS1="===[\h][\u] \w # " PS2=">"