rbenv plugin
authorVictor Castell <victorcoder@gmail.com>
Sat, 5 Nov 2011 12:20:00 +0000 (13:20 +0100)
committerVictor Castell <victorcoder@gmail.com>
Sat, 5 Nov 2011 12:20:00 +0000 (13:20 +0100)
plugins/available/rbenv.bash [new file with mode: 0644]

diff --git a/plugins/available/rbenv.bash b/plugins/available/rbenv.bash
new file mode 100644 (file)
index 0000000..6fd8f10
--- /dev/null
@@ -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