mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 13:50:09 +00:00
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 :)
This commit is contained in:
parent
c488ab15f3
commit
9263e9ca59
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Activates autoenv or reports its failure
|
# Activates autoenv or reports its failure
|
||||||
() {
|
() {
|
||||||
if ! type autoenv_init >/dev/null; then
|
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
|
if [[ -e $d/activate.sh ]]; then
|
||||||
autoenv_dir=$d
|
autoenv_dir=$d
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue