Enabling colours with “ls” in OS X terminal

On Linux you can type ls --color to get a directory listing in glorious colour, however the same command doesn’t work quite as well on OS X. The solution is to add the following lines to ~/.profile and then just use ls as normal:

alias ls='ls -G'
alias ll='ls -l'
alias grep='grep --color=auto'

Leave a Reply

Your email is never published nor shared. Required fields are marked *