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 :)
Diff
1diff --git a/plugins/autoenv/autoenv.plugin.zsh b/plugins/autoenv/autoenv.plugin.zsh
2index ea2e56dd6149d748ae65791fd2618921e6c7cf19..af58ee77bf853f9cc397bb6bc1c8f16e21beccac 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); do
10+ for d (~/.autoenv /usr/local/opt/autoenv /usr/local/bin); do
11 if [[ -e $d/activate.sh ]]; then
12 autoenv_dir=$d
13 break