cae540f899b1e302e514e190f7d51331a5a689e0

Author
Italo Maia <italo.maia@gmail.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

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

Diff

 1diff --git a/plugins/autoenv/autoenv.plugin.zsh b/plugins/autoenv/autoenv.plugin.zsh
 2index af58ee77bf853f9cc397bb6bc1c8f16e21beccac..3c1b0fafce8d6471886c1324a52859576e0c4623 100644
 3--- a/plugins/autoenv/autoenv.plugin.zsh
 4+++ b/plugins/autoenv/autoenv.plugin.zsh
 5@@ -1,7 +1,7 @@
 6 # Activates autoenv or reports its failure
 7 () {
 8 if ! type autoenv_init >/dev/null; then
 9-  for d (~/.autoenv /usr/local/opt/autoenv /usr/local/bin); do
10+  for d (~/.autoenv ~/.local/bin /usr/local/opt/autoenv /usr/local/bin); do
11     if [[ -e $d/activate.sh ]]; then
12       autoenv_dir=$d
13       break