You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{- $database := promptStringOnce . "database" "Please add the path to your keepass2 database to be used via keepassxc cli" -}}
[keepassxc]
database = {{ $database | quote }}
However, with chezmoi init I am always prompted the database entry request.
This is rather invonvenient. If this is possible, I'd say the proper way should be documented.
What have you tried so far?
The same syntax storing under [data] works. However, keepassxc requires the database entry to be under [keepassxc] (as I understand it).
{{- $database := promptStringOnce . "keepassxc-database" "Please add the path to your keepass2 database to be used via keepassxc cli" -}}
[keepassxc]
database = {{ $database | quote }}
[data]
# This is a workaround
keepassxc-database = {{ $database | quote }}
It seems like it could be useful, at least for chezmoi init, to have .chezmoi.config.* keys available so that you could do promptStringOnce . "chezmoi.config.keepassxc.database" "DATABASE, MORTAL". I don’t know that it would be useful for normal usage.
@dboeckenhoff I believe that once this is released, your template would be updated to
{{- $database := promptStringOnce . "chezmoi.config.keepassxc.database" "Please add the path to your keepass2 database to be used via keepassxc cli" -}}
[keepassxc]
database = {{ $database | quote }}
What exactly are you trying to do?
My .chezmoi.toml.tmpl does
However, with chezmoi init I am always prompted the database entry request.
This is rather invonvenient. If this is possible, I'd say the proper way should be documented.
What have you tried so far?
The same syntax storing under [data] works. However, keepassxc requires the database entry to be under [keepassxc] (as I understand it).
Where else have you checked for solutions?
Finally
Thanks for this awesome project!
The text was updated successfully, but these errors were encountered: