![text edit launches on startup text edit launches on startup](https://i.stack.imgur.com/tRYpL.png)
If yours is different, adjust this file path accordingly and add it in to.
#TEXT EDIT LAUNCHES ON STARTUP .EXE#
exe file to run Sublime Text 2 was directly in the Sublime Text 2 folder, so as you can see in my snippet, my path was "/c/Program Files/Sublime Text 2/sublime_text.exe". If not, look around for it and copy the file path. If you snoop around in your Program Files in the C:\ drive you will hopefully find the Sublime Text 2 folder there as well. exe in Program Files (not the "(x86)" one). In my case, and I think this is the case for most others on Windows, it automatically installed the Sublime Text 2 file. You have to tell the CLI where the file is that you want to launch when that alias is typed. The part that is tricky is the file path. You could even make it alias st and then all you'd have to type is st The alias subl is pretty clear, right? alias tells the the CLI what it is that you're making, and the subl is the text that you want to type to automatically launch Sublime Text 2. bashrc file: alias subl='"/c/Program Files/Sublime Text 2/sublime_text.exe"'
![text edit launches on startup text edit launches on startup](https://c8.alamy.com/comp/T2EF9F/science-hand-drawn-icon-pack-for-designers-and-developers-icons-of-launch-rocket-space-startup-astronomy-solar-system-science-vector-T2EF9F.jpg)
#TEXT EDIT LAUNCHES ON STARTUP CODE#
Here's the line of code you want to add to your. Create a new file in Sublime Text 2 and Save As ".bashrc", then put it in your root directory. If you don't see a file called ".bashrc" in your root directory, create one using Sublime Text 2 (which I'm assuming you have already downloaded since you want to create a shortcut to it). Remember, you can show your hidden files in Windows 7 by going here. Depending on your situation, you may or may not already have the file we want to find or create. Go to your root directory ~/ (you know, the one with your profile name as the folder name). Once you're all set with a bash command line for Windows we can find or create the file where we will store command line shortcuts, which are called aliases. I installed a nicer command line client called Console. We will use Git Bash once you've installed Git for Windows. Step 1Äownload Git for Windows if you don't already have it. Long story short, these instructions should work with adding any alias. Shortcuts) in Windows but I learned this process because I was trying to add a shortcut to launch Sublime Text 2 from my CLI (command line) in Windows 7 by typing "subl". This tip could have also been titled Adding Command Line Aliases (i.e.