Closed Pilgrim1379 closed 1 year ago
Looking at the source state of .tool-versions
in your dotfiles repo, it is a file dot_tool-versions
, not symlink_dot_tool-versions.tmpl
.
Could you push the changes to your dotfiles so I can investigate?
@twpayne I've just pushed the changes. Thanks
Ah, chezmoi is ignoring .tool-versions
completely as it it's in your .chezmoiignore
.
Thanks @twpayne it's working now. The decision to put it in .chezmoiignore
came from the example as below:
Tell chezmoi to ignore this file:
$ echo settings.json >> $(chezmoi source-path)/.chezmoiignore
Thanks again. I'll close this in a bit.
The decision to put it in
.chezmoiignore
came from the example as below:Tell chezmoi to ignore this file: $ echo settings.json >> $(chezmoi source-path)/.chezmoiignore
Ah-hah! Thank you for the explanation. This is only needed in the settings.json
example as settings.json
does not begin with a .
. chezmoi ignores all files beginning with a .
in the source directory (except for .chezmoi*
files) so the addition to .chezmoiignore
is not needed in the .asdf-versions
case. I'll update the docs.
What exactly are you trying to do?
Asdf version manager automatically modifies
~/.tool-versions
anytime you install or delete a package. At the moment anytime this happens I have tore-add
otherwisechezmoi apply
overwrites the content.What have you tried so far?
I have followed the instructions under manage different types of file.
What I was expecting was a symlink to be created at
~/.tool-versions
which points to the actual file inchezmoi sourceDir
. However no symlink is created.In
~/.local/share/chezmoi
I have the file.tool-versions
this contains:and
symlink_dot_tool-versions.tmpl
whose content is:Where else have you checked for solutions?
Output of
chezmoi doctor
Not sure what I'm doing wrong as the example provided seemed straight forward enough.