-
-
Save znatz/9721387 to your computer and use it in GitHub Desktop.
rvm complain of "PATH is not properly set up" ref: http://qiita.com/900090009/items/779dd0b5317e24939489
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__rvm_path_match_gem_home_check_warning() | |
{ | |
rvm_warn "\ | |
Warning! PATH is not properly set up, '$GEM_HOME/bin' $1, usually this is caused by shell initialization files - check them for 'PATH=...' entries, it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',to fix temporarily in this shell session run: 'rvm use ${GEM_HOME##*/}'." | |
} | |
__rvm_path_match_gem_home_check() | |
{ | |
(( ${rvm_silence_path_mismatch_check_flag:-0} == 0 )) || return 0 | |
[[ -n "${GEM_HOME:-}" ]] || return 0 | |
case "$PATH:" in | |
($GEM_HOME/bin:*) true ;; # all fine here | |
(*:$GEM_HOME/bin:*) | |
__rvm_path_match_gem_home_check_warning "is not at first place" | |
;; | |
(*) | |
__rvm_path_match_gem_home_check_warning "is not available" | |
;; | |
esac | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Warning! PATH is not properly set up, | |
'/home/me/.rvm/gems/ruby-2.1.1/bin' is not at first place, usually this is caused by shell initialization files - check them for 'PATH=...' entries, it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles', to fix temporarily in this shell session run: 'rvm use ruby-2.1.1'. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment