From fe5ec4fe3182f06f72a3c4f4bb59f4f6501510f3 Mon Sep 17 00:00:00 2001 From: Dan Rose Date: Sat, 21 Mar 2020 13:59:15 -0500 Subject: [PATCH] direnv: change direnv to not assume path (#8757) On Ubuntu, direnv is not installed in `/usr/local`. --- plugins/direnv/direnv.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/direnv/direnv.plugin.zsh b/plugins/direnv/direnv.plugin.zsh index 204f46d72..d36c4ae5e 100644 --- a/plugins/direnv/direnv.plugin.zsh +++ b/plugins/direnv/direnv.plugin.zsh @@ -1,6 +1,6 @@ _direnv_hook() { trap -- '' SIGINT; - eval "$("/usr/local/bin/direnv" export zsh)"; + eval "$(direnv export zsh)"; trap - SIGINT; } typeset -ag precmd_functions;