How to map one path to another non-default path in chezmoi? #4228
-
I am currently trying to configure file management on Windows, and I want to manage the file Does chezmoi provide any functionality to specify where a certain path should be mapped? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
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 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 (
|
Beta Was this translation helpful? Give feedback.
-
ChezMoi does not support creating folders within directory links on Windows systems? Here is my implementation:
|
Beta Was this translation helpful? Give feedback.
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…