Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Sublime Text + Command line shortcut + Windows

Hi,

I am trying to create a command line shortcut like the OSX 'subl' command to use Sublime Text with Ruby and Ruby on Rails.on windows.

can anybody help me?

2 Answers

The first result on Goolge for windows sublime alias

  1. Create a batch file that contains doskey subl="C:\Program Files\Sublime Text 2\sublime_text.exe" $*
  2. Create a registry file that will set the batch file to run on startup by adding the bat file to the registry at HKEY_CURRENT_USER\Software\Microsoft\Command Processor

source: http://stackoverflow.com/a/9440776/1756132

Hi James, thanks for your fast reply.

I created a bat file containing: " @echo off doskey subimel="C:\Program Files\Sublime Text 2\sublime_text.exe" $* " yet, creating a registry file means that I just have to import the bat file in the mentioned registry or did I get that wrong?

Could someone please go into more detail? I have been stuck on this for a while now.

In english please.