ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

# Wsl​Build

ST3 Win

A Sublime Text package to create build systems running in WSL2

Labels build system

## Installs

• Total 60
• Win 59
• Mac 0
• Linux 1
Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 0 0 3 0 0 0 0 0 0 1 0 1 1 1 4 0 3 0 0 0 0 1 1 1 1 1 1 3 1 0 3 2 0 2 0 0 1 3 1 0 3 0 2 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Source
raw.​githubusercontent.​com

# WSL Build

A Sublime Text package to create build systems running in WSL2.

It adds a wsl_exec target that:

• executes Linux commands within Windows Subsystem for Linux 2
"wsl_working_dir": "$unix_file_path", }  ##### Example Builds for a Rails app in WSL: "build_systems": [ { "name": "Run Current Spec", "target": "wsl_exec", "cancel": {"kill": true}, "wsl_cmd": [ "bundle", "exec", "rake", "spec" ], "wsl_env": { "SPEC/p": "$file"
},
"wsl_working_dir": "$unix_folder" }, { "name": "Run All Specs", "target": "wsl_exec", "cancel": {"kill": true}, "wsl_cmd": [ "bundle", "exec", "rake", "spec" ], "wsl_working_dir": "$unix_folder",
},
{
"name": "Run Database Migrations",
"target": "wsl_exec",
"cancel": {"kill": true},
"wsl_cmd": [
"bundle", "exec", "rake", "db:migrate"
],
"wsl_working_dir": "$unix_folder" } ]  ### Variables #### Default Variables All default variables are provided in unconverted form in case a windows command is being executed within WSL2. variable description $packages The path to the Packages/ folder.
$platform The platform Sublime Text is running on: “windows”, “osx” or “linux”. $file The full path, including folder, to the file in the active view.
$file_path The path to the folder that contains the file in the active view. $file_name The file name (sans folder path) of the file in the active view.
$file_base_name The file name, excluding the extension, of the file in the active view. $file_extension The extension of the file name of the file in the active view.
$folder The full path to the first folder open in the side bar. $project The full path to the current project file.
$project_path The path to the folder containing the current project file. $project_name The file name (sans folder path) of the current project file.
$project_base_name The file name, excluding the extension, of the current project file. $project_extension The extension of the current project file.

#### Unix Variables

Converted path variables are provided for unix commands being executed within WSL.

variable (unix style) original variable (windows style)
$unix_file $file
$unix_file_path $file_path
$unix_folder $folder
$unix_packages $packages
$unix_project $project
$unix_project_path $project_path

Inspired by