delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/07/21/23:35:22

From: weiku AT UTKUX1 DOT UTK DOT EDU ("Wei Ku")
Subject: Re: BASH prompt modification.
21 Jul 1997 23:35:22 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199707220610.CAA12432.cygnus.gnu-win32@solid.ssd.ornl.gov>
Mime-Version: 1.0
Original-To: "'Cygnus GNU Programming Environment'" <gnu-win32 AT cygnus DOT com>
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.71.1008.3
X-MimeOle: Produced By Microsoft MimeOLE Engine V4.71.1008.3
Original-Sender: owner-gnu-win32 AT cygnus DOT com

  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 AT utkux DOT utcc DOT utk DOT 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 AT solid DOT ssd DOT ornl DOT gov
***************************************

-----Original Message-----
From: Micheal A. Benzinger <bzinger AT flash DOT net>
To: Panos Platon Tsapralis <pan AT hol DOT gr>; 'Cygnus GNU Programming
Environment' <gnu-win32 AT cygnus DOT 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 AT cygnus DOT com" with one line of text: "help".
>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019