opening sublime text from windows git bash

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

    Locate the folder where Sublime Text is installed. Here I'am taking an example of Sublime Text 3 which is installed in C:/Program Files. For many users it is present in C:/Program Files (x86).

    Run the following command (based upon your requirement):

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

    Or

    echo 'alias subl="/c/Program\ Files\ \(x86\)/Sublime\ Text\ 3/sublime_text.exe"'>> ~/.bashrc
    

    Try Closing and Re-Opening Git-Bash. If it works, then you're done.
    Otherwise, read this documentation from Udacity.

提交回复
热议问题