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
Create a text file called subl (with no extension) with the following content:
#!/bin/sh
"C:\Program Files\Sublime Text 2\sublime_text.exe" $1 &
Copy it into the C:\Program Files (x86)\Git\bin folder. 32bit Copy it into the C:\Program Files\Git\usr\bin folder. 64bit
Now to open the file enter the following command on Windows Git Bash
subl text.txt
or
subl .