Replies: 3 comments 3 replies
-
Can you achieve this with a |
Beta Was this translation helpful? Give feedback.
-
yea the I was hoping to somehow run a script to approve direnv changes, when my editor runs I tried having my editor run apply on the parent of the saved file, but it slows things down a good amount sometimes when I just want to apply one file I won't be terribly disappointed if this is out of scope for chezmoi, just thought I'd suggest |
Beta Was this translation helpful? Give feedback.
-
You can achieve this behavior within direnv config with whitelist See |
Beta Was this translation helpful? Give feedback.
-
I like keeping some various
.envrc
files in my dotfiles, cause I think direnv is great. But direnv does require you to allow.envrc
files after changes for security reasonsI'd really like if there was someway that chezmoi could run
direnv allow $PATH_TO_A_ENVRC_FILE
after it writes the file to the targetNot sure if direnv support should be a direct feature of chezmoi, is there a way to run a callback after writing a file? E.g. in that callback I could check if the file just written was an
.envrc
?Beta Was this translation helpful? Give feedback.
All reactions