On Fri, Jul 05, 2002 at 10:25:23AM -0500, Charles Steinkuehler wrote:
> > I've tried about fifteen ways to get the prompt to look like this:
> >
> > [root@firewall /usr/sbin]#   <--- where "/usr/sbin" is a current
> > working directory

> To get PWD as part of the prompt in ash, you have to "intercept" the cd
> command (and other commands that might change your directory)...details
> are available in the SF FAQ-o-matic:
> 
> http://sourceforge.net/docman/display_doc.php?docid=5178&group_id=13751

This is also a shell FAQ; look at http://www.faqs.org and look at
the comp.unix.shell FAQ, question 2.4: How do I get the current directory
into my prompt?

Others have explained it already, but there you go anyway.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to