mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-11-01 07:21:12 +00:00
If a default Ruby is set, switch to it
Set PATH variables to allow gems such as Bundler to be found and for the `ruby-info` function to properly work. A default Ruby must be set in ~/.ruby-version; for more information, see https://github.com/postmodern/chruby#default-ruby. Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
This commit is contained in:
parent
3debe8bdf6
commit
366cadecf0
@ -28,6 +28,9 @@ elif (( $+commands[chruby-exec] )); then
|
|||||||
source "${commands[chruby-exec]:h:h}/share/chruby/chruby.sh"
|
source "${commands[chruby-exec]:h:h}/share/chruby/chruby.sh"
|
||||||
if zstyle -t ':prezto:module:ruby:chruby' auto-switch; then
|
if zstyle -t ':prezto:module:ruby:chruby' auto-switch; then
|
||||||
source "${commands[chruby-exec]:h:h}/share/chruby/auto.sh"
|
source "${commands[chruby-exec]:h:h}/share/chruby/auto.sh"
|
||||||
|
|
||||||
|
# If a default Ruby is set, switch to it.
|
||||||
|
chruby_auto
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Prepend local gems bin directories to PATH.
|
# Prepend local gems bin directories to PATH.
|
||||||
|
Loading…
Reference in New Issue
Block a user