From f06d7887462bcbd776ef3813ff0636e0fe488243 Mon Sep 17 00:00:00 2001 From: Spotlight Date: Wed, 15 Apr 2020 22:15:47 +0000 Subject: [PATCH] rvm: use self-sustained script instead of lazy load --- zshrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 20ed747..da0ebd6 100644 --- a/zshrc +++ b/zshrc @@ -10,7 +10,6 @@ zplug "felixr/docker-zsh-completion" zplug "zsh-users/zsh-syntax-highlighting" zplug "zsh-users/zsh-autosuggestions" zplug "zsh-users/zsh-completions" -zplug "johnhamelink/rvm-zsh", lazy:true bindkey "$terminfo[kcuu1]" history-beginning-search-backward bindkey "$terminfo[kcud1]" history-beginning-search-forward @@ -119,3 +118,9 @@ fi if [ -d $HOME/.fastlane ]; then export PATH="$HOME/.fastlane/bin:$PATH" fi + +# RVM must be last. +if [ -d $HOME/.rvm ]; then + PATH=${PATH}:$HOME/.rvm/bin + [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" ]] +fi