Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Commit

Permalink
lazy load rbenv
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Apr 10, 2016
1 parent 8768cf1 commit ba919de
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ruby/path.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
if [ -d "$HOME/.rbenv" ]; then
export PATH="$HOME/.rbenv/bin:$PATH"
fi
# shellcheck disable=SC2039
if rbenv &>/dev/null; then
eval "$(rbenv init -)"
fi

rbenv() {
eval "$(command rbenv init -)"
rbenv "$@"
}

0 comments on commit ba919de

Please sign in to comment.