From owner-freebsd-questions Thu Jan 6 0:19:37 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail2.tor.primus.ca (mail2.tor.primus.ca [216.254.136.134]) by hub.freebsd.org (Postfix) with ESMTP id 0193F155A2 for ; Thu, 6 Jan 2000 00:19:31 -0800 (PST) (envelope-from baron@penguinpowered.com) Received: from ppp-172.m2-2.van.ican.net ([142.154.112.172] helo=tatooine.primus.ca) by mail2.tor.primus.ca with smtp (Exim 2.11 #1) id 12688g-0007Oh-04 for freebsd-questions@freebsd.org; Thu, 6 Jan 2000 03:19:22 -0500 Received: (qmail 6418 invoked by uid 1001); 6 Jan 2000 08:19:29 -0000 Message-ID: <20000106081929.6417.qmail@tatooine.primus.ca> From: baron@penguinpowered.com Subject: \$ in bash (was Re: window manager question) To: freebsd-questions@freebsd.org Date: Thu, 6 Jan 2000 00:19:29 -0800 (PST) X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >There is only one problem. My .rc files have this setup, as you >described, but modified for bash: >if [[ $EUID -eq 0 ]]; then > PS1="root@\h\w\$" >else > PS1="joseph@\h\w\$" >fi >According to the man page on bash, the "$" is supposed to show up as "#" >if uid is 0, otherwise it will show as "$". It doesn't do this, >however. It always shows up as "$", regardless of uid. I'd recommend adding this line to your ~/.bashrc export PS1='\u@\h\w\$ ' This works wonderfully for me, hope it does the same for you. Cheers, Michael Coulter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message