Tuesday, June 13, 2017

Bash Profile in Mac OS Sierra

Im not sure, but by default "ls" in Mac OS does not have color so you have to use "-G" option but quite hassle. The solution is to use alias just like in other flavors of *nix.


  1. Go to your home directory and crate ".bash_profile" and by default this is not present.

    sudo vi .bash_profile

  2. Add this line alias ls='ls -G' and save.
  3. Restart your terminal session.