Customizations based on external logic #1832
subbeh
started this conversation in
Development
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I've been exploring options to customise the output of
ezabased on additional parameters.For my use case, I'd like to be able to see if a file or directory is managed by
chezmoi. A simple one-liner liketest -z "$(chezmoi managed managed_file.txt)"can be used to get a return code of either 0 or 1.Would it be an idea to add an option like
--custom-cmd 'test -z "$(chezmoi {{ .filename }})'and--custom-icon <icon>toeza?I'm mostly thinking out loud, but if this is something that could be useful other than for my niche scenario, I'd be happy to put some more thought into it.
All reactions