opening sublime text from windows git bash

后端 未结 11 2041
有刺的猬
有刺的猬 2021-01-30 09:15

How do I open Sublime text from Git Bash in Windows? I tried adding the alias at the ~/.bashrc file but nothing worked. I was looking for something very easy but I could not fin

11条回答
  •  深忆病人
    2021-01-30 09:55

    A Better Solution:

    The updated version of sublime text 3(Build 3065) brings this feature as "subl.exe" which was "subl" in mac os.

    How to use:

    step 1: Update sublime text (in sublimetext --> Help -> Check for Updates)
    step 2: Just navigate to your project folder through bash and type subl.exe which should open the folder in sublime text. (if you encounter "subl.exe" command not found, just add sublime's path eg: "C:\Program Files\Sublime Text 3" to your system path - Here's how to add path to environment variables)

提交回复
热议问题