项目作者: imhta

项目描述 :
command line utilities for windows subsystem, and you can use it for installing ubuntu wsl in windows
高级语言: Ruby
项目地址: git://github.com/imhta/winsub_cli.git
创建时间: 2019-08-19T09:18:31Z
项目社区:https://github.com/imhta/winsub_cli

开源协议:MIT License

下载


winsub_cli

It is a Command line tool to manage Ubuntu Windows subsystem. It aims to provide some utility functions to improve developers productivity. Using this cli we can use wsl seamlessly.

Installation

Requirement

  • Ruby 2.3 =<
  • WSL enabled
  1. Open PowerShell as Administrator and run:
    1. Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
  2. Restart your computer when prompted.

  3. Then, Just use this command to install

    1. gem install winsub_cli

Usage

> install_

This command used install ubuntu wsl in windows

  1. install_ ubuntu

It use choco package manager to install ubuntu, so first it will install choco first then it will install ubuntu.

> bash_

This command run any bash command from windows to wsl. It is same as using wsl command.

  1. bash_ sudo apt update

> nano_

  1. nano_

Using this command you can open nano editor in current directory

> vi_

  1. vi_

Using this command you can open vim editor in current directory

Contribution

:heart: Feel free to make PR