# To try it out, simply copy the 'export' line into any bash terminal and press enter # If you would like to keep it, create/edit a/the .bash_profile file in your home # directory and paste the lines in there and save. The changes should now be permanent # unless you remove the lines from the .bash_profile # Default is: \h:\W \u\$ # The format without the color codes: \u@\h:\w $ export PS1="\u\[$(tput setaf 2)\]@\[$(tput sgr0)\]\h\[$(tput setaf 2)\]:\[$(tput sgr0)\]\w \[$(tput setaf 2)\]$\[$(tput sgr0)\] " # this is like the default set of color codes for ls -G except that directories are cyan export LSCOLORS="gxfxcxdxbxegedabagacad"