-
What I am trying to do is automatically infer gpg key from user's email, I have tried several things, none of them worked. This is the config I currently have which does not work
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
What exactly have you tried and what exactly happened? You need to be more specific if you want help. People cannot read minds. I suspect the problem is that you're mixing up template data (every variable beginning with a |
Beta Was this translation helpful? Give feedback.
I have not run the commands, but:
This sets the
$git_email
local template variable.This sets the
$GIT_EMAIL
environment variable to$git_email
for the next time that the script is run.This uses the current value of the
$GIT_EMAIL
environment variable. If you're runningchezmoi init
for the first time then this environment variable will not be set.Fundamentally, I think the confusion here is between imperative code and declarative data. For example: