Skip to content

How to map one path to another non-default path in chezmoi? #4228

Answered by bradenhilton
jbwfu asked this question in Q&A
Discussion options

You must be logged in to vote

The functionality you mentioned does not yet exist. It is currently being considered for v3, but v3 may also never happen. See #2673 for a general overview.

Currently, the way I would achieve this would be to make your PowerShell profile a template in .chezmoitemplates, then place that template in every target path permutation, then use .chezmoiignore to exclude the paths that aren't needed on each of your machines.

This method is not perfect, but you may still find it useful.

Here is how I currently handle my PowerShell profile for both Windows PowerShell (powershell.exe) and the cross-platform PowerShell (pwsh.exe) on both Windows and UNIX-like platforms:

.local/share/chezmoi/.chezmoite…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jbwfu
Comment options

Answer selected by jbwfu
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants