I can't seem to figure out how to open Sublime Text 2 from Bash on Ubuntu on Windows. Ultimately I would like to be able to use subl .
to open the contents of the directory I am in.
On my machine, Sublime Text 2 is installed at C:\Program Files\Sublime Text 2
. sublime_text.exe
is located in this directory. In Bash on Ubuntu on Windows, I can access any files located on C
through /mnt/c/
.
I tried setting an alias: alias subl="/mnt/c/Program\ Files/Sublime\ Text\ 2/sublime_text.exe"
. However, upon trying subl .
I get the following error:
cannot execute binary file: Exec format error
How can I set this up properly?