I don't know why my bash session doesn't show colors. I have tried Terminal as well as iTerm.
I have tried:
ls -G
- Setting
export CLICOLOR=1
andexport LSCOLORS=GxFxCxDxBxegedabagaced
- Using different themes such as solarized and something else
The versions of my software are:
- bash: GNU bash, version 3.2.51(1)-release (x86_64-apple-darwin13)
- osx: 10.9.2
I have Homebrew installed
I don't know what other information might be helpful. I spend a lot of time on the shell, this problem is becoming very annoying 🙂
edit: in terminal preferences, I have 'Declare terminal as: xterm-256color' and 'Display ANSI colors' along with 'Use bright colors for bold text'
Best Answer
I would suggest installing the GNU Core Utilities via Homebrew, which will give you the "Linux" version of
ls
(instead of the FreeBSD version that ships with OS X), as well as other powerful toolsYou should then be able to show colors with:
Additionally, read the caveats to configure your PATH so you can use commands like
gls
with their normal names, i.e.ls
: