Find a circle, did not find the relevant linux subsystem sublime configuration windows of the shell compiler environment article, found himself at the relevant settings, configuration is successful.
What is WSL
Windows Subsystem for Linux (short WSL) is a binary executable file to run Linux (ELF format) is on the Windows 10 natively compatible layer. It is a collaboration with Canonical developed by Microsoft, the goal is to make pure Ubuntu 14.04 "Trusty Tahr" images can be downloaded and expanded into a local computer user, and the tools and utilities in the image can natively run in this subsystem.
installation
Open "Windows Subsystem for Linux" optional feature
Open PowerShell
, run the following command:
the Enable-WindowsOptionalFeature the -ONLINE -FeatureName in the Microsoft-Windows-Linux-the Subsystem
or to turn this feature through the control panel "Starting Windows features on or off" option. Finally, reboot the system.
Installation wsl
Direct access to the Microsoft Store, search for Linux, will appear Ubuntu, suse, and several releases, select a click can be installed
Enter wsl system
Open or PowerShell cmd, enter the command to enter wsl bash subsystem.
The first entry, steps need to follow the new user password
after the completion of the new common user, having permissions sudo, can be switched through to the root sudo SU
may be provided by the passwd sudo root password, after setting by su - a handover command to the root account
Configure the shell environment for the compilation Sublime Text
Installed Sublime Text, open software, tools - compiler system - a new build system, saving at the contents of the file to open
{
"cmd" : ["bash", "-c", "bash ${file_name}"],
"shell": true,
"working_dir": "${file_path}",
}
Save to WSL-shell.sublime-build, the file Packages sublime under installation directory / User folder.
Verify that the configuration is successful
Write a good save suffix .sh shell script name, press the shortcut keys ctrl + b compile and run the script, you can see the results, the configuration was successful