mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-19 20:29:45 +01:00
pyenv: detect pyenv from Homebrew faster (#7670)
This commit is contained in:
parent
15f29aacc2
commit
a43cef3404
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
||||||
FOUND_PYENV=$+commands[pyenv]
|
FOUND_PYENV=$+commands[pyenv]
|
||||||
|
|
||||||
if [[ $FOUND_PYENV -ne 1 ]]; then
|
if [[ $FOUND_PYENV -ne 1 ]]; then
|
||||||
pyenvdirs=("$HOME/.pyenv" "/usr/local/pyenv" "/opt/pyenv")
|
pyenvdirs=("$HOME/.pyenv" "/usr/local/pyenv" "/opt/pyenv" "/usr/local/opt/pyenv")
|
||||||
for dir in $pyenvdirs; do
|
for dir in $pyenvdirs; do
|
||||||
if [[ -d $dir/bin ]]; then
|
if [[ -d $dir/bin ]]; then
|
||||||
export PATH="$PATH:$dir/bin"
|
export PATH="$PATH:$dir/bin"
|
||||||
|
|
Loading…
Reference in a new issue