浏览代码

direnv: change direnv to not assume path (#8757)

On Ubuntu, direnv is not installed in `/usr/local`.
Dan Rose 5 年之前
父节点
当前提交
fe5ec4fe31
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/direnv/direnv.plugin.zsh

+ 1 - 1
plugins/direnv/direnv.plugin.zsh

@@ -1,6 +1,6 @@
 _direnv_hook() {
 _direnv_hook() {
   trap -- '' SIGINT;
   trap -- '' SIGINT;
-  eval "$("/usr/local/bin/direnv" export zsh)";
+  eval "$(direnv export zsh)";
   trap - SIGINT;
   trap - SIGINT;
 }
 }
 typeset -ag precmd_functions;
 typeset -ag precmd_functions;