opening sublime text from windows git bash

后端 未结 11 2036
有刺的猬
有刺的猬 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:46

    I had the same issue launching Sublime Text 3 form Git Bash.

    1. I ran the following command (my OS was windows 7 and Sublime Text 3 was located in the "C:\Program Files\Sublime Text 3" directory) :

      echo 'alias subl="/C/Program\ Files/Sublime\ Text\ 3/sublime_text.exe"' >> ~/.bashrc

    2. Close Git Bash and Open it again.

    3. Type subl

提交回复
热议问题