From: Victor Castell Date: Sat, 5 Nov 2011 12:20:00 +0000 (+0100) Subject: rbenv plugin X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=ef4111e9b0494643c2655692bb10650ea5e54b89;p=common%2Fbash_it.git rbenv plugin --- diff --git a/plugins/available/rbenv.bash b/plugins/available/rbenv.bash new file mode 100644 index 0000000..6fd8f10 --- /dev/null +++ b/plugins/available/rbenv.bash @@ -0,0 +1,13 @@ +#!/bin/bash + +# Load rbebv, if you are using it +export PATH="$HOME/.rbenv/bin:$PATH" +eval "$(rbenv init -)" + +# Check to make sure that RVM is actually loaded before adding +# the customizations to it. +if [ "$rvm_path" ] +then + # Load the auto-completion script if rbenv was loaded. + source ~/.rbenv/completions/rbenv.bash +fi \ No newline at end of file