Last active
August 14, 2022 02:11
-
-
Save gh640/7496222 to your computer and use it in GitHub Desktop.
Sublime Text 2 の Ruby ビルドコマンドを rbenv で設定した環境の下で実行するための設定ファイル
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
{ | |
// "cmd": ["ruby", "$file"], | |
// for bash and rvenv | |
"shell": true, | |
"cmd": ["source ~/.bashrc; ruby -v; 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
補足
shell
をtrue
にするcmd
でruby
コマンドを実行する前に rbenv 環境を読み込む(この場合は.bashrc
を利用)