-
Hi, Is there a way to set the default Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
twpayne
Jan 11, 2024
Replies: 1 comment 4 replies
-
There's currently no way to do this. Do you really want to encrypt every file managed by chezmoi? As a work-around, you can create a shell alias, something like: alias chezmoi-add="chezmoi add --encrypt" and then use Alternatively, you could define a plugin: #!/bin/bash
# put this in a file called chezmoi-adde somewhere in your path
exec chezmoi add --encrypt "$*" and then use |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
breisfeld
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's currently no way to do this. Do you really want to encrypt every file managed by chezmoi?
As a work-around, you can create a shell alias, something like:
and then use
chezmoi-add
instead ofchezmoi add
.Alternatively, you could define a plugin:
and then use
chezmoi adde
instead ofchezmoi add
.