Modified from http://www.linuxguy.in/bashrc-on-opensolaris/
1 2 3 4
| echo "alias ls='/usr/gnu/bin/ls -hAF --color --group-directories-first'" >> ~/.bashrc echo "alias ll='/usr/gnu/bin/ls -hAlF --color --group-directories-first'" >> ~/.bashrc echo "alias lsx='/usr/gnu/bin/ls -hAFX --color --group-directories-first'" >> ~/.bashrc echo "alias llx='/usr/gnu/bin/ls -hAlFX --color --group-directories-first'" >> ~/.bashrc
|
You may also need to add it to your ~/.profile
1 2 3 4
| echo "alias ls='/usr/gnu/bin/ls -hAF --color --group-directories-first'" >> ~/.profile echo "alias ll='/usr/gnu/bin/ls -hAlF --color --group-directories-first'" >> ~/.profile echo "alias lsx='/usr/gnu/bin/ls -hAFX --color --group-directories-first'" >> ~/.profile echo "alias llx='/usr/gnu/bin/ls -hAlFX --color --group-directories-first'" >> ~/.profile
|
Then relogin.