Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emulate -A and -h ls flags #21

Closed
wrboyce opened this issue Dec 8, 2014 · 4 comments
Closed

emulate -A and -h ls flags #21

wrboyce opened this issue Dec 8, 2014 · 4 comments

Comments

@wrboyce
Copy link

wrboyce commented Dec 8, 2014

-A - shows dotfiles but not . and ..
-h - shows "human readable" file sizes

@sattellite
Copy link

For implement -h flag needs add that code before line 202:

     if [[ $1 == '-h' ]]; then
       FILESIZE=`numfmt --to=iec $FILESIZE`
       FILESIZE="${(l:MAX_LEN[5]:)FILESIZE}"
     fi

numfmt - tool from coreutils

@chrstphrknwtn
Copy link
Contributor

@sattellite numfmt is not generally available, not even with Xcode Command Line Utilities on Mac OS X, nor Build Essentials on Debain based Linux (as far as I know).

@sattellite
Copy link

@chrstphrknwtn strange. It was added in coreutils-8.21 (2013-02-14). numfmt in Debian was added in coreutils-8.21-1 (2013-07-21).
All Linux distributions have this tool.
I don't know anything about Mac OS X, sorry.

@supercrabtree
Copy link
Owner

Closing as duplicate of #27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants