<p>From build <a href="http://www.sublimetext.com/3">3065</a> (Release Date: 29 August 2014) onwards <code>Sublime text</code> includes a ligne de commande helper, nameley <code>subl.exe</code>. It is at sublime’s installation folder: copy it in to a folder included in the system path.<br>
Par exemple, in my case I copied it</p>
<p>from <code>C:\Program Files\Sublime Text 3</code></p>
<p>to <code>C:\Windows\System32</code></p>
<p>You may then use in your terminal/console <code>subl</code> as a command to open whatever file, such as in your example:</p>
<p><code>subl file.rb</code></p>
<p>Or you may as well modify your system <code>PATH</code> variable to include sublime’s instalation folder, but I believe that is much more involved.</p>