Merge branch 'chruby-support' into 'master'

Adding chruby support

You know, I'm not using rbenv, cause it's too big for me. Tool called ```chruby``` is my choice, so I've added support for this tool in zsh-config.

See merge request !2
This commit is contained in:
Stanislav Nikitin 2016-01-04 12:50:02 +03:00
commit 48b4d04710
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"