k
k copied to clipboard
Add support for all the flags
Many requests for flag support, so that peeps can use it just like ls
All Flags (from http://linux.die.net/man/1/ls)
Supported
-a, --all -A, --almost-all -d, --directory -h, --human-readable --help
Extra (no in ls)
--no-vcs do not get VCS status (much faster) -n don't show directorys
ToDo
--author -b, --escape --block-size=SIZE -B, --ignore-backups -c -C --color[=WHEN] -D, --dired -f -F, --classify --file-type --format=WORD --full-time -g --group-directories-first -G, --no-group
--si -H, --dereference-command-line --dereference-command-line-symlink-to-dir --hide=PATTERN --indicator-style=WORD -i, --inode -I, --ignore=PATTERN -k -l -L, --dereference -m -n, --numeric-uid-gid -N, --literal -o -p, --indicator-style=slash -q, --hide-control-chars --show-control-chars -Q, --quote-name --quoting-style=WORD -r, --reverse -R, --recursive -s, --size -S --sort=WORD --time=WORD --time-style=STYLE -t -T, --tabsize=COLS -u -U -v -w, --width=COLS -x -X -1 --lcontext -Z, --context --scontext --help --version
The -h
options requires numfmt
, but the documentation does not say how to install it, perhaps it could be added
On osX, brew install coreutils
installs gnumfmt
, so a fix would be to detect whether numfmt
exists or use gnumfmt
on Darwn
@maelp I added checks for gnumfmt
in c08c3d3b8afcd1d5bd95deb5debd624bcc65ac5b, and I've just added notes to the readme for installing gnumfmt
on OS X / Darwin with homebrew in 242a7040a561dd00f1f7fa6e44989fce558e0943 - excellent suggestion.