Adding chruby support

This commit is contained in:
Valdos Sine 2016-01-04 00:16:49 +03:00
parent e284e32b74
commit 2840fc8c08
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,4 @@
# chruby in use?
USE_CHRUBY=0
# Path to chruby scripts.
CHRUBY_PATH="/usr/share/chruby"

10
zsh/exports/95-chruby.zsh Normal file
View File

@ -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"