From f5d7ca34b834391f942f7d7399eacb321ed40628 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Wed, 12 Nov 2014 14:49:07 +0100 Subject: [PATCH] chruby support --- shell/chruby | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 shell/chruby diff --git a/shell/chruby b/shell/chruby new file mode 100755 index 0000000..c7b71a9 --- /dev/null +++ b/shell/chruby @@ -0,0 +1,7 @@ +if [[ -f /usr/local/opt/chruby/share/chruby/chruby.sh ]]; then + source /usr/local/opt/chruby/share/chruby/chruby.sh + + if [[ -f $HOME/.ruby-version ]]; then + chruby $(cat $HOME/.ruby-version) + fi +fi