Adding chruby support
This commit is contained in:
parent
e284e32b74
commit
2840fc8c08
4
zsh/defaults/50-chruby.conf
Normal file
4
zsh/defaults/50-chruby.conf
Normal 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
10
zsh/exports/95-chruby.zsh
Normal 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"
|
Loading…
Reference in New Issue
Block a user