mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 10:06:40 +00:00
Lazy load rbenv
This commit is contained in:
@@ -47,10 +47,16 @@ if [ -n "$BASH_VERSION" ]; then
|
||||
alias bcn="bundle clean"
|
||||
fi
|
||||
|
||||
if [ -n "$(command -v rbenv)" ]; then
|
||||
eval "$(rbenv init --no-rehash -)"
|
||||
# lazy-load rbenv
|
||||
if [ -d "$HOME/.rbenv/shims" ]; then
|
||||
path_prepend "$HOME/.rbenv/shims"
|
||||
fi
|
||||
|
||||
rbenv() {
|
||||
eval "$(command rbenv init -)"
|
||||
rbenv "$@"
|
||||
}
|
||||
|
||||
# lunchy auto-completion
|
||||
if [ -n "$BASH_VERSION" ]; then
|
||||
if which gem &> /dev/null && gem which lunchy &> /dev/null; then
|
||||
|
||||
Reference in New Issue
Block a user