Change / Setup bash custom prompt (PS1)

I am trying to create my custom prompt and I have almost succeeded. Right now I have

PS1='\n\[\e[0;31m\][\t @\u \W]\$\[\e[0m\] '

What I have not figured out is how to make the directories bold when I'm using commands ls or ls -la.
Any idea how to do it???
Many thanx.

Hi emailkia,

Welcome to the forum.

If you are using GNU ls, you could set --color extension to coloring the stuffs.
You can set an alias in your ".profile" or ".bashrc" for ls to ls --color

alias ls='ls --color'

@clx, thank you for reply and for your welcome.
It didn't work for me. I am using Mac os x Lion which is basically a Unix machine (Darwin) with a GNU Bash version 3.2.48 as you might know. And I don't want to make all "ls" output colored but just the directories so I can easily differ between files and directories.

---------- Post updated at 02:04 AM ---------- Previous update was at 01:54 AM ----------

I got it :smiley:
It works as following, an example:
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacadd
yippiii