Github → sublime-text-2-rbenv
使い方は簡単ヘ(^o^)ノ
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/ git clone git://github.com/felipeelias/sublime-text-2-rbenv.git rbenv
Sublime Textのツールバー Tools → Build System
RBenvを選択
さっそく⌘+Bで実行
ruby_version.rb
puts `ruby -v`
実行結果
[Errno 2] No such file or directory [cmd: [u'~/.rbenv/bin/rbenv', u'/usr/local/bin/rbenv', u'exec', u'ruby', u'/Users/murajun/test.rb']] [dir: /Users/murajun] [path: /usr/bin:/bin:/usr/sbin:/sbin] [Finished]
ディレクトリがない…だと…( ; ゚Д゚)
~/Library/Application Support/Sublime Text 2/Packages/rbenv/RBenv.sublime-build
{ "cmd": ["~/.rbenv/bin/rbenv", "/usr/local/bin/rbenv", "exec", "ruby", "$file"], "selector": "source.ruby" }
~/.rbenv/bin/rbenvってのを削除して⌘+Bで実行
ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-darwin12.2.1] [Finished in 0.1s]
できたヘ(^o^)ノ
0 件のコメント:
コメントを投稿