From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 18319 invoked from network); 17 Apr 2000 09:18:27 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 17 Apr 2000 09:18:27 -0000 Received: from c816192-b.lakwod2.co.home.com (brianls@c816192-b.lakwod2.co.home.com [24.13.144.33]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id FAA27321 for ; Mon, 17 Apr 2000 05:18:25 -0400 From: brianls@home.com Received: (from brianls@localhost) by c816192-b.lakwod2.co.home.com (8.9.3/8.9.3) id PAA01122; Sun, 16 Apr 2000 15:05:14 -0600 X-Authentication-Warning: c816192-b.lakwod2.co.home.com: brianls set sender to brianls@home.com using -f MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14586.11018.629059.780621@c816192-b.lakwod2.co.home.com> Date: Sun, 16 Apr 2000 15:05:14 -0600 (MDT) To: blinux-list@redhat.com Subject: How to use PS1 so that the current path can be the prompt In-Reply-To: References: X-Mailer: VM 6.75 under Emacs 20.3.1 List-Id: I'm pretty sure it depends on the shell you're using. If you're using sh or bash, try this, export PS1="\W " I prefer an extra character after the directory name. My root prompt looks like: export PS1="\W> " And all others use a different character: export PS1="\W# " This allows me to know if I'm currently logged in as root or not. Brian. >>>>> "Bing" == Bing Li writes: Bing> Dear all, How to use PS1 so that the current path can be the Bing> prompt? Please give me help! Thanks, Bing> Bing Bing> _________________ | How are you? |_____ __ | Bing> I am Li Bing. | |__| |_________ |________________| OK? |::| | Bing> Need / | \.____|::|__| Help? < | \::/ \._______\ /\**/\ | Bing> ___________________________________ ( o_o )_ Bing> |__|http://www.public.asu.edu/~libing / (u--u \_) | Bing> |bing.li@asu.edu, 480-829-8492(H) / (||___ )==\ Bing> |480-965-3753(L)602-965-1746(O) \ ,dP"/b/=( /P"/b\ Bing> |__________________________________\ |8 || 8\=== || 8 `b, ,P Bing> `b, ,P """` """` Bing> --- Send your message for blinux-list to Bing> blinux-list@redhat.com Blinux software archive at Bing> ftp://leb.net/pub/blinux Blinux web page at Bing> http://leb.net/blinux To unsubscribe send mail to Bing> blinux-list-request@redhat.com with subject line: unsubscribe -- Brian Sellden www.henge.com/~brian What on earth would a man do with himself if something did not stand in his way?" -- Orson Wells