I'm new to OS X, having just gotten a Mac after working with Ubuntu Linux for some time. Among the many things I'm trying to figure out is the absence of colors in my terminal window - like the ones that are shown (on Linux) when running ls -la
or git status
...
I just can't figure out how to activate colors in my shell.
If you want to have your ls colorized you have to edit your ~/.bash_profile file and add the following line (if not already written) :
Then you edit or create ~/.bashrc file and write an alias to the ls command :
Now you have to type
source .bashrc
in a terminal if already launched, or simply open a new terminal.If you want more options in your
ls
juste read the manual (man ls
). Options are not exactly the same as in a GNU/Linux system.