Last active
December 9, 2024 13:14
-
-
Save iloveitaly/64b3ebdb50b90057ac820b25b4072970 to your computer and use it in GitHub Desktop.
zinit plugin for direnv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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