[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: path in prompt



>How can I get my prompt to display my full path? The only directory it
>shows is the one I am in. I am using bash with RH5 set at whatever the
>defaults are when I installed RH.
>thanks,
>
>Aaron Winters


Aaron:
    Using \w in PS1 will echo the current directory you are in.  If I'm
using bash, I would use something like:  PS1='\u \h(\!)\w> '

An example of what this would look like on my machine would be:
matts desiato(47)~/ftp>

Scope the bash man pages for more info on changing the prompt.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]