[PLUG] Directory path in the bash prompt?

Matt Alexander m at netpro.to
Wed Jul 17 18:52:18 UTC 2002


On Wed, 17 Jul 2002, Matt Alexander wrote:

> Here's a nice prompt that I use in my ~/.bashrc
>
> COLOR1="\[\033[1;35m\]"
> COLOR2="\[\033[1;36m\]"
> COLOR3="\[\033[1;32m\]"
> COLOR4="\[\033[0m\]"
> PS1="[$COLOR2\u$COLOR4@$COLOR1\h $COLOR3\w$COLOR4]\\$ "
>
> This displays the full path of the current directory, \w, so you could
> take that out if you don't want it.
> ~M

...this works best with a black background...





More information about the PLUG mailing list