You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
987 B
39 lines
987 B
13 years ago
|
# Install local gems according to Mac OS X conventions.
|
||
|
if [[ "$OSTYPE" == darwin* ]]; then
|
||
|
export GEM_HOME=$HOME/Library/Ruby/Gems/1.8
|
||
|
export PATH=$GEM_HOME/bin:$PATH
|
||
|
|
||
|
# gem is slow; cache its output.
|
||
|
cache_file="${0:h}/cache.zsh"
|
||
|
if [[ ! -f "$cache_file" ]]; then
|
||
|
echo export GEM_PATH=$GEM_HOME:$(gem env gempath) >! "$cache_file"
|
||
|
source "$cache_file"
|
||
|
else
|
||
|
source "$cache_file"
|
||
|
fi
|
||
|
unset cache_file
|
||
|
fi
|
||
15 years ago
|
|
||
13 years ago
|
# Loads RVM into the shell session.
|
||
|
completion_file="${0:h}/_rvm"
|
||
|
if [[ -s "$HOME/.rvm/scripts/rvm" ]]; then
|
||
|
source "$HOME/.rvm/scripts/rvm"
|
||
|
|
||
|
# Complete rvm.
|
||
|
if [[ ! -e "$completion_file" ]]; then
|
||
|
ln -f -s "$rvm_path/scripts/zsh/Completion/_rvm" "$completion_file" 2> /dev/null
|
||
|
fi
|
||
|
else
|
||
|
if [[ -L "$completion_file" ]]; then
|
||
|
unlink "$completion_file" 2> /dev/null
|
||
|
fi
|
||
|
fi
|
||
|
unset completion_file
|
||
|
|
||
|
# Loads rbenv into the shell session.
|
||
|
if [[ -s "$HOME/.rbenv/bin/rbenv" ]]; then
|
||
|
path=("$HOME/.rbenv/bin" $path)
|
||
|
eval "$(rbenv init -)"
|
||
|
fi
|
||
|
|