summaryrefslogtreecommitdiff
path: root/plugins/autoenv/autoenv.plugin.zsh
diff options
context:
space:
mode:
authorAdrian Petrescu <apetresc@gmail.com>2016-09-30 17:39:32 -0400
committerMarc Cornellà <marc.cornella@live.com>2016-09-30 23:39:32 +0200
commit9263e9ca59a65cad53d1cf0581c2af344984c2af (patch)
tree4aa61e6980957605c9a50c44880853ba8bc9ae5c /plugins/autoenv/autoenv.plugin.zsh
parentc488ab15f3293c3870f66fe84fc7ee71a182f214 (diff)
downloadzsh-9263e9ca59a65cad53d1cf0581c2af344984c2af.tar.gz
zsh-9263e9ca59a65cad53d1cf0581c2af344984c2af.tar.bz2
zsh-9263e9ca59a65cad53d1cf0581c2af344984c2af.zip
Add /usr/local/bin to autoenv search path (#5481)
The current list of directories to search for autoenv on misses the default location on Ubuntu systems if you just do a normal `pip install autoenv` - [it will place](https://github.com/kennethreitz/autoenv/blob/master/setup.py#L16) `activate.sh` in `/usr/local/bin` unless you manually override the `--prefix` or something. The `/usr/local/opt/autoenv` is fine for macOS/homebrew installations but it would be nice not to have to manually patch on Linux :)
Diffstat (limited to 'plugins/autoenv/autoenv.plugin.zsh')
-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 ea2e56dd6..af58ee77b 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); do
+ for d (~/.autoenv /usr/local/opt/autoenv /usr/local/bin); do
if [[ -e $d/activate.sh ]]; then
autoenv_dir=$d
break