From owner-freebsd-questions@FreeBSD.ORG Fri Feb 27 10:32:52 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 CC34D16A4F8 for ; Fri, 27 Feb 2004 10:32:52 -0800 (PST) Received: from mx4.uniserve.ca (mx4.uniserve.ca [216.113.192.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id A583143D1F for ; Fri, 27 Feb 2004 10:32:52 -0800 (PST) (envelope-from rjwsys@uniserve.com) Received: from rob.office.uniserve.ca ([204.244.161.211] helo=rob) by mx4.uniserve.ca with smtp (Exim 4.22) id 1Awmn5-0002CC-EU; Fri, 27 Feb 2004 10:32:51 -0800 Message-ID: <03d101c3fd60$07dfefb0$d3a1f4cc@rob> From: "Robert Westendorp" To: "Steven N. Fettig" , References: <403F69E6.9050701@stevenfettig.com> Date: Fri, 27 Feb 2004 10:32:18 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Scanner: OK. Scanned. 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:32:53 -0000 Try: PS1=`id -un`@`hostname -s`"$ " I put that into the .bashrc file. ----- Original Message ----- From: "Steven N. Fettig" To: Sent: Friday, February 27, 2004 8:01 AM Subject: Hostname in shell (bash)? > 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? > > Thanks, > Steve > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"