Skip to content

Instantly share code, notes, and snippets.

@pdarden
Last active March 21, 2016 02:23
Show Gist options
  • Save pdarden/7440501 to your computer and use it in GitHub Desktop.
Save pdarden/7440501 to your computer and use it in GitHub Desktop.
How to setup SeeingIsBelieving Plugin for Sublime Text/RVM/OS X

Integration of seeing_is_believing to sublime text 2/3 as a plugin with RVM on OS X.

In Terminal

  1. $ rvm 2.0.0@sublime-text-2 --create or for ST-3 $ rvm 2.0.0@sublime-text-3 --create
  2. $ gem install seeing_is_believing
  3. $ cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages or for ST-3 $ cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages
  4. git clone git://github.com/JoshCheek/sublime-text-2-seeing-is-believing.git SeeingIsBelieving
  5. $ rvm wrapper 2.0.0@sublime-text-2 sublime or for ST-3 $ rvm wrapper 2.0.0@sublime-text-3 sublime
  6. Execute which sublime_ruby. It will return something like this /Users/name/.rvm/bin/sublime_ruby.

Fixing Settings

Open the setting file for SeeingIsBelieving. Set ~/.rvm/bin/sublime_ruby as the value of ruby_command in the file. Comment out the line containing RBENV_VERSION.

Example: //"RBENV_VERSION": "2.0.0-p0".

Usage

  1. Restart Sublime
  2. Open a ruby file
  3. Run the command Evaluate Ruby code with Seeing Is Believing from your command pallete (⌘ + ⇧ + P), or press (⌥ + ⌘ + B).
  4. To edit the ruby file, run Remove Seeing Is Believing annotations or press (⌥ + ⌘ + V).
@djpowers
Copy link

Awesome, thanks! That fixed the problems I was having.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment