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
Ma rc
9,242 PointsSublime 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
James Barnett
39,199 PointsThe first result on Goolge for windows sublime alias
-
Create a batch file that contains
doskey subl="C:\Program Files\Sublime Text 2\sublime_text.exe" $* -
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
Dylan Mitchley
Courses Plus Student 1,897 PointsIn english please.
Ma rc
9,242 PointsMa rc
9,242 PointsHi 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?
Austin Bebber
7,044 PointsAustin Bebber
7,044 PointsCould someone please go into more detail? I have been stuck on this for a while now.