-
Notifications
You must be signed in to change notification settings - Fork 471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to add file with chezmoi #2154
Comments
By default, chezmoi removes files whose target contents are empty, unless they have the $ touch ~/.desktop
$ chezmoi add --empty ~/.desktop
$ ls $(chezmoi source-path ~/.desktop)
$HOME/.local/share/chezmoi/home/empty_dot_desktop Thanks for the offer of contributing. I don't think a |
Ahh I see, Make sense, what if we add extra output for Something like: $ touch ~/.foo
$ chezmoi add ~/.foo
Do you really want to add an empty file? Use 'chezmoi add --empty $FILE' Because while a documentation chage might help, I would rather have the program nudge me in the right direction. |
Hmmm, on reflection I think that |
Describe the bug
I'm trying to add a file to chezmoi, the file does not get added and no error is returned.
To reproduce
Expected behavior
I expected that my new file would be added to the
.local/share/chezmoi
directory and ready to be worked on.Output of command with the
--verbose
flagNothing
Output of
chezmoi doctor
Additional context
It appears that it works if the file has contents.
Should I open a PR that adds a
chezmoi touch
command? I would really like to contribute =)The text was updated successfully, but these errors were encountered: