opening sublime text from windows git bash

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

    I added this to my C:\Users\username\.bashrc file:

    export PATH="$PATH:/c/Program Files/Sublime Text 3"
    

    Save the file. Then in Git Bash, type

    which subl
    

    to prove it works.

提交回复
热议问题