Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (12 sloc) 456 Bytes
# -*- shell-script -*-
# if ruby is a symlink, add its directory to the end of the path.
if command -v ruby >/dev/null 2>&1;
then
export RUBY_PATH=`which ruby`
export RUBY_LINK=`readlink ${RUBY_PATH}`
# for homebrew - add ruby's link target path to the path
if echo ${RUBY_LINK} | grep -qs '^\.\./Cellar/ruby';
then
export PATH=$PATH:`dirname ${RUBY_PATH}`/`dirname ${RUBY_LINK}`
fi
fi