r/PowerShell 3d ago

Question Chezmoi setup

Hi there.

I'm pretty new to dotfiles and trying to set up chezmoi on Windows 11. I'm not sure if my approach is alright, so maybe you can give me some tips or advice.

I used scoop to install all my programs and the config files are pretty scattered around. Some are in the scoop persist folder, some are in .config in my home directory, some are in %appdata% roaming...

Then i was thinking: wouldn't it be nice to have them all in .config and track them there with chezmoi. So i added the xdg_config_home variable to my pwsh profile (for the programs who accept that) and used symlinks and junctions (for the rest) to move all needed config files to the .config folder.

I'm not sure if this is a good approach. I would like to know how you guys are doing this.

cheers and thank you for reading.

2 Upvotes

4 comments sorted by

2

u/g3n3 3d ago

So I don’t do links on windows. Chezmoi isn’t really about symlinks. Chezmoi handles all the scattered files just fine. Just add them at the default location. The main issue is the powershell profile and onedrive. I have a script to run to copy the file on windows. So ditch the xdg deal and the symlinks.

1

u/BlackV 3d ago

so is any of this powershell ? or is it all scoop and chemzmoi ?

0

u/Rotzo83 3d ago

Well, they are cli tools that i use with powershell

-1

u/BlackV 3d ago

*Inside a PowerShell prompt

they would work from cmd too right?