I frequently get prompted by VS Code to reload the direnv extension with a message like so:
OS: macOS 13.6 (M2)
Editor: VS Code 1.84.0-insider
Extension: v0.15.2
Shell env: Nushell 0.85.0
My Nushell config:
# ~/.config/nushell/config.nu
# ...
$env.config = {
# ...
hooks: {
# ...
env_change: {
# https://direnv.net/docs/hook.html#nushell
PWD: { ||
if (which direnv | is-empty) {
return
}
direnv export json | from json | default {} | load-env
}
}
# ...
}
# ...
}
# ...
I frequently get prompted by VS Code to reload the
direnvextension with a message like so:OS: macOS 13.6 (M2)
Editor: VS Code 1.84.0-insider
Extension: v0.15.2
Shell env: Nushell 0.85.0
My Nushell config: