opening sublime text from windows git bash

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

    One of the problems I had was that I had to use backslashes \ in the path of the directory instead of normal slashes /, like the everyone here is using. Then I had to escape backslashes using double backslash \\. So, in my case I wrote the path like this:

    alias subl='C:\\Program\ Files\\Sublime\ Text\ 3\\sublime_text.exe'
    

提交回复
热议问题