I was wondering how you can open Sublime text 3 with Git-Bash I keep getting errors saying that bash: subl: command not found does anyone know how to get the file to open up??
1 Answer
You need to add the folder containing subl.exe to your PATH. Here's how to do that in Windows 10:
- Open the Windows menu and click on Settings.
- In the search box, type in
path. Choose the following from the dropdown: Edit environment variables for your account. This window should open:
- In the top pane, click on Path, then click the Edit… button. A new window will open up.
- Click the New button, then (carefully) type in
C:\Program Files\Sublime Text 3. This is assuming you used the installer and didn't choose a custom location for a portable install. If you do have a portable install, use the Browse… button and select the installation folder that way. - Hit OK to close the window, then OK again to close the other one. Finally, close out of Settings.
- Completely close out of and restart Git Bash.
sublshould now be available on the command line.
1 Comment
TheGreatCatsby
Thanks for the info I actually figured it out in a video a couple hours after I posted this. I do have another question tho.