macOS â—† xterm-256color â—† fish 1480 views

My lsg command is meant to give summaries of file status within a git working directory, and on the repositories outside. The command filters the output from the ls command and appends information about the files if they exist within a git repository.

Because it filters the ls output, all the switches that you would normally use are supported (with the exception of the multi-column output), and colouring provided by the ls tool itself is honoured. The colours of the git status are read from your git configuration (as used by git status) to ensure that the scheme matches your choices.

The tool has been tested with the BSD ls under Mac OS, and the GNU ls under Linux, and appears to work well in both environments.