sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 35959cd1c41272d6342b3befc054d9f505552e66
parent 81bb8422a534456d9afe0aa61bb09c94c62f9398
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Mon, 21 Jul 2014 13:42:33 +0000

ls: improve default format

truncate username and group for better alignment for now. in the future
better tabular printing will be implemented.

Diffstat:
Mls.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ls.c b/ls.c @@ -282,7 +282,7 @@ output(Entry *ent) fmt = "%b %d %H:%M"; strftime(buf, sizeof buf, fmt, localtime(&ent->mtime)); - printf("%s %2ld %-4s %-5s %6lu %s %s%s", mode, (long)ent->nlink, pwname, + printf("%s %4ld %-8.8s %-8.8s %10lu %s %s%s", mode, (long)ent->nlink, pwname, grname, (unsigned long)ent->size, buf, ent->name, indicator(ent->mode)); if(S_ISLNK(ent->mode)) { if((len = readlink(ent->name, buf, sizeof buf)) == -1)