From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 4200 invoked from network); 17 Apr 2000 18:46:21 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 17 Apr 2000 18:46:21 -0000 Received: from server.casa (ip117.pool-03.cyb.it [195.191.3.118]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id OAA22076 for ; Mon, 17 Apr 2000 14:46:07 -0400 Received: from max.casa (max.casa [192.168.0.1]) by server.casa (8.9.3/8.9.3) with SMTP id UAA01070 for ; Mon, 17 Apr 2000 20:45:02 +0200 From: Massimiliano Perantoni Organization: Antani Corporation To: blinux-list@redhat.com Subject: Re: How to use PS1 so that the current path can be the prompt Date: Mon, 17 Apr 2000 20:41:25 +0200 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain References: In-Reply-To: MIME-Version: 1.0 Message-Id: <00041720452600.00910@max.casa> Content-Transfer-Encoding: 8bit List-Id: Hi! you should go and mofify /etc/bashrc if you want to modify the system wide prompt of bash, while if you want to modify only your account one then you should modify ~/.bashrc. The variable should contain, where you like it the \w switch, for example, my prompt is Mon Apr 17 20:44:02 [maxper@max/usr/local/bin] $ and is obtained with export PS1="\d \t\n[\u@\h\w]\n\$" Bye, Massimiliano Il giorno dom, 16 apr 2000, Bing.Li@asu.edu ha scritto: > Dear all, > > How to use PS1 so that the current path can be the prompt? Please give me > help! Thanks, > > Bing > > _________________ > | How are you? |_____ __ > | I am Li Bing. | |__| |_________ > |________________| OK? |::| | Need / > | \.____|::|__| Help? < > | \::/ \._______\ > /\**/\ | ___________________________________ > ( o_o )_ |__|http://www.public.asu.edu/~libing / > (u--u \_) | |bing.li@asu.edu, 480-829-8492(H) / > (||___ )==\ |480-965-3753(L)602-965-1746(O) \ > ,dP"/b/=( /P"/b\ |__________________________________\ > |8 || 8\=== || 8 > `b, ,P `b, ,P > """` """` > > > --- > Send your message for blinux-list to blinux-list@redhat.com > Blinux software archive at ftp://leb.net/pub/blinux > Blinux web page at http://leb.net/blinux > To unsubscribe send mail to blinux-list-request@redhat.com > with subject line: unsubscribe -- "If automobiles had followed the same development cycle as the computer, a Rolls-Royce would today cost $100, get a million miles per gallon, and explode once a year, killing everyone inside." --Robert Cringley