Skip to content

Instantly share code, notes, and snippets.

@zachharkey
Forked from fny/Ruby.sublime-build
Created March 11, 2014 07:16
Show Gist options
  • Save zachharkey/9481001 to your computer and use it in GitHub Desktop.
Save zachharkey/9481001 to your computer and use it in GitHub Desktop.
# Get Sublime Text to use your rvm ruby without hardcoding a `$USER`.
#
# Include the configurations below the commend in the appropriate file listed below:
#
# - OS X ST2: ~/Library/Application Support/Sublime Text 2/Packages/Ruby/Ruby.sublime-build
# - OS X ST3: ~/Library/Application Support/Sublime Text 3/Packages/User/Ruby.sublime-build
# - Linux ST2: ~/.config/sublime-text-2/Packages/Ruby/Ruby.sublime-build
# - Linux ST3: ~/.config/sublime-text-3/Packages/User/Ruby.sublime-build
{
"working_dir": "${project_path}",
"env": {
"PATH": "${HOME}/.rvm/bin:${PATH}"
},
"cmd": [
"rvm-auto-ruby", "$file"
],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.ruby"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment