diff --git a/zsh/defaults/50-chruby.conf b/zsh/defaults/50-chruby.conf new file mode 100644 index 0000000..33cdc86 --- /dev/null +++ b/zsh/defaults/50-chruby.conf @@ -0,0 +1,4 @@ +# chruby in use? +USE_CHRUBY=0 +# Path to chruby scripts. +CHRUBY_PATH="/usr/share/chruby" diff --git a/zsh/exports/95-chruby.zsh b/zsh/exports/95-chruby.zsh new file mode 100644 index 0000000..2d08175 --- /dev/null +++ b/zsh/exports/95-chruby.zsh @@ -0,0 +1,10 @@ +# chruby sourcing. + +# This exports should work only if config states this. +if [ "${USE_CHRUBY}" -eq 0 ]; then + return +fi + +export CHRUBY_ROOT="${CHRUBY_PATH}" +source "${CHRUBY_ROOT}/chruby.sh" +source "${CHRUBY_ROOT}/auto.sh"