On Tue, Feb 05, 2002 at 12:46:17AM +0800, Charles Jie wrote:
> 2. The 'ls' don't group directories/files into two part.
>    - If you code something to achieve it, you lose the COLORs.

Try typing this and see if it does what you want:

ls -d `find * -type d -maxdepth 0`; ls `find * -type f -maxdepth 0`

You could put this in your .bashrc (or equivalent file):

alias dir=ls -d `find * -type d -maxdepth 0`; ls `find * -type f -maxdepth 0`

and then just type "dir" and you will see the directories, followed by
the files, and it's sorted and has color.

Warning: It might not work right for directories that have a huge
number of files due to limits in argument list length.

Reply via email to