
___x_cmd_wsl_install(){
    # if installed, return 0
    # wsl:info "wsl already installed"

    wsl:info "step-1: enable wsl"
    ___x_cmd_cmds dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

    wsl:info "step-2: enable virtual machine"
    ___x_cmd_cmds dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

    wsl:info "step-3: using version 2"
    ___x_cmd_wsl___bin --set-default 2
}
