summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2018-08-19 22:33:44 +0200
committerGitHub <noreply@github.com>2018-08-19 22:33:44 +0200
commitfceae90219c1c8b422a6d0e220e45ce59b9b737a (patch)
tree342eab271cc45ac58bfc6612701fa99a73e17501
parente4d2d27af4ba10ae456b5676f3b70573b01d9538 (diff)
downloadzsh-fceae90219c1c8b422a6d0e220e45ce59b9b737a.tar.gz
zsh-fceae90219c1c8b422a6d0e220e45ce59b9b737a.tar.bz2
zsh-fceae90219c1c8b422a6d0e220e45ce59b9b737a.zip
jenv: fix brew directory search
`brew --prefix jenv` doesn't ensure jenv is installed so we have to recheck if the bin folder is still there.
-rw-r--r--plugins/jenv/jenv.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/jenv/jenv.plugin.zsh b/plugins/jenv/jenv.plugin.zsh
index cead0077b..14c586be9 100644
--- a/plugins/jenv/jenv.plugin.zsh
+++ b/plugins/jenv/jenv.plugin.zsh
@@ -10,7 +10,7 @@ done
if [[ $FOUND_JENV -eq 0 ]]; then
if (( $+commands[brew] )) && jenvdir="$(brew --prefix jenv)"; then
- FOUND_JENV=1
+ [[ -d "${jenvdir}/bin" ]] && FOUND_JENV=1
fi
fi