From 0cbd3480a8ba8b28980722331a5560e3fd5a831c Mon Sep 17 00:00:00 2001 From: Jan Lindblom Date: Wed, 17 Dec 2014 13:51:57 +0100 Subject: [PATCH] Allow plan plugin to read from $PLENV_ROOT (useful with Homebrew on Mac). --- plugins/plenv/plenv.load | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/plenv/plenv.load b/plugins/plenv/plenv.load index 42b202b..f496383 100644 --- a/plugins/plenv/plenv.load +++ b/plugins/plenv/plenv.load @@ -1,2 +1,7 @@ -_prepend_path $HOME/.plenv/bin -_prepend_path $HOME/.plenv/shims +if test -n "$PLENV_ROOT" + _prepend_path $PLENV_ROOT/bin + _prepend_path $PLENV_ROOT/shims +else + _prepend_path $HOME/.plenv/bin + _prepend_path $HOME/.plenv/shims +end