Skip to content

Instantly share code, notes, and snippets.

@gh640
Last active August 14, 2022 02:11
Show Gist options
  • Select an option

  • Save gh640/7496222 to your computer and use it in GitHub Desktop.

Select an option

Save gh640/7496222 to your computer and use it in GitHub Desktop.
Sublime Text 2 の Ruby ビルドコマンドを rbenv で設定した環境の下で実行するための設定ファイル
{
// "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"
}
@gh640
Copy link
Copy Markdown
Author

gh640 commented Aug 14, 2022

補足

  1. shelltrue にする
  2. cmdruby コマンドを実行する前に rbenv 環境を読み込む(この場合は .bashrc を利用)

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