Skip to content

A modified `ls` for macOS to add the options --group-directories-first and --group-dots-extra-first

License

Notifications You must be signed in to change notification settings

torstenvl/betterls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

betterls — list directory contents

USAGE

betterls [−@ABCFGHILOPRSTUWabcdefghiklmnopqrstuvwxy1%,] [−-color=when] [−-group-directories-first] [−-group-dots-extra-first] [−D format] [file ...]

DESCRIPTION

This is a modified version of the Darwin/macOS ls command with the following two additional options:

−-group-directories-first

Sort directories before other file types.

−-group-dots-extra-first

Always sort hidden directories and files before visible directories and files, even when directories are otherwise grouped first.

HISTORY

This project is forked from the BSD-licensed macOS Monterey source code for the ls utility. Some interface definitions are only available in non-free header files, so they were reverse-engineered. All of the code in this repository is available under the permissive BSD license.

Last updated by Joshua Lee Ockert <torstenvl(at)gmail.com> on January 24, 2023

About

A modified `ls` for macOS to add the options --group-directories-first and --group-dots-extra-first

Resources

License

Stars

Watchers

Forks