chezmoi target-path and source-only files
#4891
Unanswered
Lockszmith-GH
asked this question in
Q&A
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 have a feeling this is something that I discussed in the past, but couldn't find it here in discussions, so apologies if this is Déjà vu)
I have a script that lists all files I might want to edit in my environment (the output is later fed into fuzzy search logic)
This includes everything in my chezmoi source state / git repo, including stuff in the target that has yet to be managed, but is valid for management.
chezmoi managedandchezmoi unmanagedcover most of this, but there is a list of files that are not listed, and I'm looking for the best way to ID them.I thought of using
chezmoi target-path $(find -L "$(chezmoi source-path)" -type f), problem is - the path reported for files that are in the source repo, but not in the target are reported in the target-path, see a subset of examples below:However, none of these paths actually require translation to the home-dir, or stripping of the
.tmplextensions, as they will never be part of the target-directory, meaning that all of thesetarget-pathin the output are misleading/non-existing.The way I see it,
target-pathshould either:or, my personal preference:
Would changing the implementation of
target-pathmake sense here?If it makes sense, would this require a new feature?
Beta Was this translation helpful? Give feedback.
All reactions