Skip to content

Instantly share code, notes, and snippets.

@iloveitaly
Last active December 9, 2024 13:14
Show Gist options
  • Save iloveitaly/64b3ebdb50b90057ac820b25b4072970 to your computer and use it in GitHub Desktop.
Save iloveitaly/64b3ebdb50b90057ac820b25b4072970 to your computer and use it in GitHub Desktop.
zinit plugin for direnv
# make sure you execute this *after* asdf or other version managers are loaded
# direnv is go, really fast, no need to cache
if (( $+commands[direnv] )); then
source <(direnv hook zsh)
# if you open up a new shell in a directory with direnv, it won't be executed until you
# execute a command. This executes any .envrc file immediately.
_direnv_hook
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment