Add chruby and chruby-auto plugins

* chruby.bash loads chruby
  * chruby-auto.bash loads chruby and enables auto-switching
  * add chruby_version_prompt() function for displaying ruby version
  * inspired by https://gist.github.com/rssvihla/6153455
This commit is contained in:
aram price
2013-11-03 17:58:09 -08:00
parent 8c03cc4297
commit b48a0f2f65
3 changed files with 20 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
cite about-plugin
about-plugin 'load chruby + auto-switching (from /usr/local/share/chruby)'
source /usr/local/share/chruby/chruby.sh
source /usr/local/share/chruby/auto.sh

View File

@@ -0,0 +1,4 @@
cite about-plugin
about-plugin 'load chruby (from /usr/local/share/chruby)'
source /usr/local/share/chruby/chruby.sh