On 7/17/05, Alex Yarmol <[EMAIL PROTECTED]> wrote:
> How I can chage my bash prompt to this:
> 
> [EMAIL PROTECTED] directory-name(e. g. "alex" for /usr/home/alex)]$
> 
> I assume that I need to do that:
> 
> export PS1='[EMAIL PROTECTED] \(here i don't know what to do, i assume, that I
> need to write "\p" or "\P", but it's not working)]\$

\w lowercase should give you the full path
\W uppercase gives the last component of the path, so given:

[EMAIL PROTECTED] /]$ cd /usr/local/etc
[EMAIL PROTECTED] etc]$

which tend to prefer to the full path, but you didn't ask what I prefer :-)
Aaron
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to