Quote:
Originally Posted by pan64
is there any way to make it available for other distros?
|
Great idea, but I do not know the details of how packages are created for other distros. I've made some inroads on Cygwin packaging but nothing is ready to announce.
Quote:
Originally Posted by pan64
probably add -n|--number to print top N lines.
|
Good suggestion, I'll consider it for a future release. Of course I'll have to change the name too
Quote:
Originally Posted by pan64
add short options, like -i|--inodes -a|--apparent-size -h|--help (or -?) -V|--version
|
I like short options but there are other considerations.
Like
df and
du,
dtt uses
-h for
--human-readable. So it is not available for
--help.
I will not add
-? because
? is a shell wildcard character. Always save your friends from unexpected shell globbing when you can.
Maybe ten percent of utilities use
-V for
--version. Most uses are for something else. For example,
vim uses it for verbose mode.
df and
du pair
-a with
--all. I am reserving
-a for the possibility that
--all will be meaningful to
dtt in a future release.
df (but not
du) already supports
-i for
--inodes, I will consider it for a future release.
Quote:
Originally Posted by pan64
and as it was mentioned would be nice to have either a ~/.dttrc for user specific defaults or an env var which may contain default options (like less).
|
dtt is designed to work like
df and
du in this regard. The environment variables
DTT_BLOCK_SIZE,
BLOCK_SIZE, and
BLOCKSIZE can be used to change the reporting unit of measure. For example,
DTT_BLOCK_SIZE=1024 gets you Gnu-like output.