Commit a132c77 1 parent fe35538 commit a132c77 Copy full SHA for a132c77
File tree 2 files changed +22
-1
lines changed
2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -1182,7 +1182,27 @@ if command -v src-hilite-lesspipe.sh >/dev/null ; then
1182
1182
fi
1183
1183
1184
1184
# Conditional support for Ruby Version Manager (RVM)
1185
- safe_source_first " ${HOME} /.rvm/scripts/rvm" " /usr/local/lib/rvm"
1185
+ case " $RUBY_MANAGER " in
1186
+ chruby)
1187
+ if command -v brew > /dev/null ; then
1188
+ safe_source_first " $( brew --prefix) /opt/chruby/share/chruby/chruby.sh" \
1189
+ " /usr/local/share/chruby/chruby.sh"
1190
+ else
1191
+ safe_source_first " /usr/local/share/chruby/chruby.sh"
1192
+ fi
1193
+ ;;
1194
+ rbenv)
1195
+ for d in " ${HOME} /.rbenv/bin" " /usr/local/rvm/bin" ; do
1196
+ if [ -d " $d " ] ; then
1197
+ export PATH=" $d :$PATH " ; break
1198
+ fi
1199
+ done ; unset d
1200
+ eval " $( rbenv init -) "
1201
+ ;;
1202
+ rvm|* )
1203
+ safe_source_first " ${HOME} /.rvm/scripts/rvm" " /usr/local/lib/rvm"
1204
+ ;;
1205
+ esac
1186
1206
1187
1207
# Number of commands to remember in the command history
1188
1208
export HISTSIZE=10000
Original file line number Diff line number Diff line change 8
8
#---------------------------------------------------------------
9
9
# Set Global Environment Variables
10
10
#---------------------------------------------------------------
11
+ #RUBY_MANAGER=
11
12
12
13
13
14
#---------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments