WSL (Windows Subsystem Linux)


Some of the languages needs WSL (Windows Subsystem Linux), so you need to enable it maually otherwise Nexss Programmer will not allow to run programmes in those languages.

List of Languages which needs WSL

  • Crystal
  • Ada

Enable WSL

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Install without store

Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1604 -OutFile Ubuntu.appx -UseBasicParsing

more here: https://docs.microsoft.com/en-us/windows/wsl/install-manual OR https://docs.microsoft.com/en-us/windows/wsl/install-win10

Nexss Programmer

Check Windows Or Linux

if grep -q Microsoft /proc/version; then
  printf "NEXSS/ok:Linux on Windows\n\r" >&2
else
  printf "NEXSS/ok:Native Linux\n" >&2
fi

Change to Windows Folder on Bash

cdw() { cd "$(wslpath "$1")"; }
myFolder="c:\\windows\\system32\\"
cdw $myFolder # Will translate change dir without errors "not found"