Last active
August 26, 2015 22:39
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" | |
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
Install by running