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.
- Go to your home directory and crate ".bash_profile" and by default this is not present.
sudo vi .bash_profile
- Add this line alias ls='ls -G' and save.
- Restart your terminal session.
No comments:
Post a Comment