summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorItalo Maia <italo.maia@gmail.com>2017-01-05 07:41:53 -0300
committerMarc Cornellà <marc.cornella@live.com>2017-01-05 11:41:53 +0100
commitcae540f899b1e302e514e190f7d51331a5a689e0 (patch)
tree496a2158ef235e235f34c222b4072ccf6217cc04
parent4608231b2576fbe27913a6ce3d350ab03b9b5932 (diff)
downloadzsh-cae540f899b1e302e514e190f7d51331a5a689e0.tar.gz
zsh-cae540f899b1e302e514e190f7d51331a5a689e0.tar.bz2
zsh-cae540f899b1e302e514e190f7d51331a5a689e0.zip
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
-rw-r--r--plugins/autoenv/autoenv.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/autoenv/autoenv.plugin.zsh b/plugins/autoenv/autoenv.plugin.zsh
index af58ee77b..3c1b0fafc 100644
--- a/plugins/autoenv/autoenv.plugin.zsh
+++ b/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