2 ms·
I looked into this and tried porting my dot files over because I was very interested in the templating feature. However, I don't think I'm going to continue bec
by CGamesPlay 8y ago
I looked into this and tried porting my dot files over because I was very interested in the templating feature. However, I don't think I'm going to continue because the experience of maintaining these dot files is substantially worse than my current solution. I would be interested in continuing if this feature existed:
I want a command that inspects every file and directory monitored by chezmoi in the target state and updates it in the source state. Specifically:
- New files in tracked directories should be listed with the ability to import them individually (presently you can only do `chezmoi add -r` and deal with the consequences).
- Adding files should respect the `chezmoiignore` file (I never want `chezmoi add -r ~/.config/fish` to import my `fish_history` file).
- twp 8y agoThanks for the suggestions, I'll implement them. In the short term, to chose files individually you can do: find ~/.config -type f > file-list $EDITOR file-list # remove the ones you don't want imported xargs chezmoi add <file-list EDIT: Issues created: https://github.com/twpayne/chezmoi/issues/123 https://github.com/twpayne/chezmoi/issues/123 https://github.com/twpayne/chezmoi/issues/124 https://github.com/twpayne/chezmoi/issues/124