Use any direnv (not just nix)

This commit is contained in:
Loic Nageleisen 2021-12-01 00:37:03 +01:00
parent fefe99ae9f
commit 5619d5dccf
Signed by: lloeki
GPG key ID: 971B4D9F125CD31E

View file

@ -4,7 +4,7 @@ if command -v direnv 2>&1 >/dev/null; then
_direnv_hook() {
local previous_exit_status=$?;
trap -- '' SIGINT;
eval "$("${HOME}/.nix-profile/bin/direnv" export bash)";
eval "$(direnv export bash)";
trap - SIGINT;
return $previous_exit_status;
};
@ -13,7 +13,7 @@ if command -v direnv 2>&1 >/dev/null; then
# eval "$(direnv hook zsh)"
_direnv_hook() {
trap -- '' SIGINT;
eval "$("${HOME}/.nix-profile/bin/direnv" export zsh)";
eval "$(direnv export zsh)";
trap - SIGINT;
}
fi