Skip to content

Instantly share code, notes, and snippets.

@iwatakeshi
Last active August 29, 2015 14:07
Show Gist options
  • Save iwatakeshi/665d22150b7146d417fb to your computer and use it in GitHub Desktop.
Save iwatakeshi/665d22150b7146d417fb to your computer and use it in GitHub Desktop.
Sublime Text for Windows Command Line

###Instructions

  • Open cmd prompt
//Click Start then type 'cmd'. Then hit ctrl + shift + enter to run as admin.
  • Add Sublime to PATH
//Type sysdm.cpl into cmd prompt and open system settings.
//Create a new system variable called SUBLIME
//Add the system variable to PATH by adding %SUBLIME%; after the last ';'
  • Create a symlink to Sublime
cd "C:\Program Files\Sublime Text {version}\"
mklink sublime.exe sublime_text.exe
  • Enjoy
sublime .
#sublime {file name}

###Credits

http://scotch.io/tutorials/text-editors/open-sublime-text-from-the-command-line-using-subl-exe-windows

http://stackoverflow.com/a/11688193/1251031

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