This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: BASH prompt modification.


  export PS1='\w > ' is good, but somtimes too long. '\W >' will show only
the current subdirectory not the whole directory tree.

There are other useful escape key for prompt. check the man page for bash to
obtain more information.

Sincerely,
Wei Ku

***************************************
Department of Physics and Astronomy
The University of Tennessee
1408 Circle Drive
Knoxville, Tennessee 37996-1200
weiku@utkux.utcc.utk.edu
---------------------------------------
Solid State Division
Oak Ridge National Laboratory
P.O.Box 2008
Oak Ridge, TN 37831-6032
Phone: (423) 574-5795
Fax: (423) 574-4143
weiku@solid.ssd.ornl.gov
***************************************

-----Original Message-----
From: Micheal A. Benzinger <bzinger@flash.net>
To: Panos Platon Tsapralis <pan@hol.gr>; 'Cygnus GNU Programming
Environment' <gnu-win32@cygnus.com>
Date: Tuesday, July 22, 1997 12:52 AM
Subject: Re: BASH prompt modification.



>Hi Panos,
>
>I believe the following in your .bashrc file will do the trick:
>
> export PS1='\w > '
>
>Mike Benzinger
>
>At 11:45 PM 7/21/97 +-300, Panos Platon Tsapralis wrote:
>> Dear friends,
>>
>> I want to modify the command line prompt of BASH so that it will show
>on-screen ( after complete execution of every command ) the current
>directory ( the output of pwd or the content of $PWD ). How on earth do I
>do this ? I have made endless efforts to find a solution but to no avail.
>Please help me...
>>
>
>
>-
>For help on using this list (especially unsubscribing), send a message to
>"gnu-win32-request@cygnus.com" with one line of text: "help".
>

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]