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'