-
-
Save zachharkey/9481001 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Show hidden characters
# 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