Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Commits existing script

  • Loading branch information...
commit cd808e0dfa9b036a18de38936f3bafef5ef877bb 0 parents
@joefiorini authored
Showing with 15 additions and 0 deletions.
  1. +15 −0 bin/rbenv-prompt
15 bin/rbenv-prompt
@@ -0,0 +1,15 @@
+version_string=$(rbenv version-name)
+case ${version_string%-*} in
+ 1.8.6) version_string="❻" ;;
+ 1.8.7) version_string="❼" ;;
+ 1.9.1) version_string="❶" ;;
+ 1.9.2) version_string="❷" ;;
+ 1.9.3) version_string="❸" ;;
+ *) version_string="♢" ;;
+esac
+
+[ -f $(pwd)/.rbenv-gemsets ] && gemset_string=" ⟡$(rbenv gemset active | cut -d' ' -f1)"
+if [ ! $version_string = '' ]; then
+ echo "$version_string$gemset_string"
+fi
+
Please sign in to comment.
Something went wrong with that request. Please try again.