Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Some unnecessary exposition about my use case
While updating my
home-manager
configuration recently, I discovered thatexa
now has a program module available, with the optionprograms.exa.git
to aliasexa
toexa --git
. I happily enabled this option but quickly found myself in situations where I didn't want the git status to shown. While I could use something like$(which exa) -l
, I far prefer the ergonomics of a--no-git
option (and it plays more nicely with other tools to boot).This PR adds the
--no-git
option. This option overrides--git
in all cases and disables showing the Git status of files in long view (-l
). This enables users of shell aliases and the like to turn off git status display in an ad hoc mannerSomewhat tangentially related: #1044.
(This is my first contribution to this codebase; I've done my best to make all the appropriate changes, but I'd appreciate any pointers if there's something I've missed. I took inspiration from the
--no-icons
option as prior art.)