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