From 5619d5dccf3be65055a487fb68cc2b08e6ecd113 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Wed, 1 Dec 2021 00:37:03 +0100 Subject: [PATCH] Use any direnv (not just nix) --- shell/direnv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/direnv b/shell/direnv index a6c19bd..c869125 100755 --- a/shell/direnv +++ b/shell/direnv @@ -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