0

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 1

1

You need to add the folder containing subl.exe to your PATH. Here's how to do that in Windows 10:

  1. Open the Windows menu and click on Settings.
  2. In the search box, type in path. Choose the following from the dropdown: Edit environment variables for your account. This window should open: Environment Variables window
  3. In the top pane, click on Path, then click the Edit… button. A new window will open up.
  4. 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.
  5. Hit OK to close the window, then OK again to close the other one. Finally, close out of Settings.
  6. Completely close out of and restart Git Bash. subl should now be available on the command line.
Sign up to request clarification or add additional context in comments.

1 Comment

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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.