Is it possible to color the prompt ("user@host:~/dir/$") in Bash? Some commands generate a lot of output and it's sometimes hard to find where it started. Coloring would help a lot.
Bashish is a theme engine for the console; check some screen shots here :-)
It's easy to install:
- Click on the download link on the website
- get the deb for Ubuntu
- double-click the downloaded file and Software center will install it for you.
After that, close any open terminals and type:
to get a list of already built themes.
Have fun :-)
A catch-all alternative to the other solutions:
if [ $(which dircolors) ] then if [ -r ~/.dircolors ] then eval "$(dircolors -b ~/.dircolors)" else eval "$(dircolors -b)" fi export color_support=true fi
Additionally, you could enable colors in common commands such as
if [ "$color_support" = true ] then alias ls="ls --color=auto" alias grep="grep --color=auto" fi