From owner-freebsd-questions@FreeBSD.ORG Wed May 18 10:27:12 2005 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 5232016A4CE for ; Wed, 18 May 2005 10:27:12 +0000 (GMT) Received: from smtp3.suscom.net (smtp3.suscom.net [64.78.119.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6B0643D9F for ; Wed, 18 May 2005 10:27:11 +0000 (GMT) (envelope-from gerard-seibert@rcn.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp3.suscom.net (Postfix) with ESMTP id 08168DBCB0 for ; Wed, 18 May 2005 06:24:06 -0400 (EDT) Received: from Gerard (ip47.232.susc.suscom.net [216.45.232.47]) by smtp3.suscom.net (Postfix) with SMTP id 377BBDBCBF for ; Wed, 18 May 2005 06:23:48 -0400 (EDT) Date: Wed, 18 May 2005 06:26:53 -0400 (Eastern Standard Time) From: Gerard Seibert To: freebsd-questions Message-ID: X-Warning: UNAuthenticated Sender MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new .250 at suscom.net Subject: Bash: Setting Prompt 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: Wed, 18 May 2005 10:27:12 -0000 FreeBSD 5.4 and Bash 3.00.16(1) I hope that this is the right place to post this. I have the following in my '.bash_profile' file. # # Set the prompt to display the 'user@host' and the working # directory with a '#' for root and '$' for user. # PS1="\u@\h \w " case 'id -u' in 0) PS1="${PS1}# ";; *) PS1="${PS1}$ ";; esac # # Keep the environment when using su to become root # alias su='su -m' # It is suppose to set the prompt to display the 'user@host' and the working directory with a '#' for root and '$' for user. Everything works except for the '#' and '$' symbols. The '$' symbol is always displayed. I must be doing something really stupid, but I do not know what. I hope that someone can assist me. - - Ciao, Gerard E. Seibert gerard-seibert@suscom.net Q: What is the definition of gross ignorance? A: 144 blondes.