Skip to content

Instantly share code, notes, and snippets.

@jah2488
Last active August 26, 2015 22:39
Show Gist options
  • Save jah2488/58a07bd88b093f0b81d7 to your computer and use it in GitHub Desktop.
Save jah2488/58a07bd88b093f0b81d7 to your computer and use it in GitHub Desktop.
curl -sSL http://bit.ly/1EhquUW | bash -s 2.2.3 (Assumes you're running Sublime Text 3 on OS X with RVM)
#!/bin/sh
[ -z "$1" ] && echo "No argument supplied: Your ruby version is required" && exit 1
RUBY_VERSION=$1
PACKAGE_DIR="$HOME/Library/Application Support/Sublime Text 3/Packages/"
gem install seeing_is_believing
rvm wrapper "$RUBY_VERSION" sublime
git clone https://github.com/JoshCheek/sublime-text-2-and-3-seeing-is-believing.git "${PACKAGE_DIR}SeeingIsBelieving"
sed -i.bak "s#~/.rbenv/shims/ruby#$(which sublime_ruby)#" "${PACKAGE_DIR}SeeingIsBelieving/Seeing Is Believing.sublime-settings"
@jah2488
Copy link
Author

jah2488 commented Aug 26, 2015

Install by running

curl -sSL http://bit.ly/1EhquUW | bash -s YOUR_RUBY_VERSION_HERE
# curl -sSL http://bit.ly/1EhquUW | bash -s 2.2.3

@jah2488
Copy link
Author

jah2488 commented Aug 26, 2015

Run SiB on a ruby file with Option + Command + b

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