sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer
run /opt/sublime_text/sublime_text
or sudo ln -s /opt/sublime_text/sublime_text /usr/local/bin/subl
with ubuntu bash on Windows 10 and Xming:
DISPLAY=:0 /opt/sublime_text/sublime_text
remove:
sudo apt-get remove sublime-text-installer
file manager:
sudo apt-get install PCManFM
DISPLAY=:0 pcmanfm
For the correct work with Linux path need to add transform path by
wslpath -aw
I just added this code to ~/.bashrc
subl() { "/mnt/c/Program Files/Sublime Text 3/subl.exe"
wslpath -aw $1}
hope it will be useful for somebody :-)