ls command in OS X
ls
by default in OS X has no --group-directories-first
Open up your terminal
1 | $ brew install coreutils |
Now you can use gls
instead of just ls
1 | $ gls --color --group-directories-first -p |
You can append an alias in your ~/.bash_profile
1 | alias ls='gls --color --group-directories-first -p' |
Reference: ls –group-directories-first