Adding new path to look for activate.sh

If autoenv was installed with pip and modifier --user, activate.sh will be at .local/bin
This commit is contained in:
Italo Maia 2016-11-22 07:56:00 -03:00 committed by GitHub
commit 1995612ac4

View file

@ -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