2014-08-02 – I’ve since got this covered:
- dir.sh
-
dos-style-dir.sh for old stuff.
/bin/ls --color -gGh "$@" | \cut -b14-
Example output:
4.0K 2009-08-16 10:21 directory1
112K 2009-07-19 09:28 directory2
- I’d rather have it wrap the filenames after the timestamp, but this isn’t half bad.
ls -hfor “human” readable. It sucks, but it’s better than having a huge string of numbers with no commas.-
A summary at the end would be nice, but that would be too obvious so nobody thought of it.
Yes, it’s a nice dream to create my own script which can do everything I want, but in reality it’s quite slow to use. Maybe if I did it in a fast-loading compiled Python script it would be acceptable. It’s somewhere on my massive TODO list.
UPDATE: That the directories should be listed at the top. I think I’ll have this alias do some sorting and pipe the results through either “less” or “MOST” as well as make a summary. I’ll make a new post for that.


fixed the links
Reworked the script so it’s beautiful, though it has external dependencies now. Oh well, I no longer care about purity/simplicity.