Skip to content

direnv

If your project uses direnv and you copy .envrc into worktrees, direnv blocks loading until you run direnv allow. Automate that:

[copy]
files = [".envrc"]
[hooks]
post_start = ['direnv allow .']

post_start runs inside the new worktree, so a bare . is enough.