浏览代码

Adding new path to look for activate.sh (#5654)

If autoenv was installed with pip and modifier --user, activate.sh will be at .local/bin
Italo Maia 8 年之前
父节点
当前提交
cae540f899
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/autoenv/autoenv.plugin.zsh

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

@@ -1,7 +1,7 @@
 # Activates autoenv or reports its failure
 () {
 if ! type autoenv_init >/dev/null; then
-  for d (~/.autoenv /usr/local/opt/autoenv /usr/local/bin); do
+  for d (~/.autoenv ~/.local/bin /usr/local/opt/autoenv /usr/local/bin); do
     if [[ -e $d/activate.sh ]]; then
       autoenv_dir=$d
       break