GithubHelp home page GithubHelp logo

win-dev's Introduction

win-dev

Development environment on Windows

Windows Subsystem for Linux

Run bash on Windows.

Installation

  1. Open PowerShell.
  2. Enable Windows Subsystem for Linux.
    > Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
    
  3. Install Ubuntu

References

scoop

Command line installer for Windows.

Installation

  1. Open PowerShell.
  2. Set the execution policy.
    > set-executionpolicy remotesigned -s currentuser
    
  3. Install scoop.
    > iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
    
  4. Add extras and versions buckets.
    > scoop add bucket extras
    > scoop add bucket versions
    

Usage

Search for packages

> scoop search vim

Install a package

> scoop install vim

References

Vim

Text editor to speed up your typing.

Installation

  1. Open PowerShell.
  2. Install Vim.
    > scoop install vim
    

Usage

Open vim in current directory.

> vim .

Open a file in vim

> vim ./my-file.txt

Visual Studio Code

IDE to speed up your development.

Installation

  1. Open PowerShell.
  2. Install VS Code.
    > scoop install vscode
    

Usage

Open current directory in VS Code.

> code .

Open file in VS Code.

> code ./my-file.txt

References

Git

Version control.

Installation

  1. Open PowerShell.
  2. Install Git.
    > scoop install git
    

Docker and docker-compose

Container management.

Installation

  1. Open PowerShell.
  2. Install Docker.
    > scoop install docker
    
  3. Install docker-compose
    > scoop install docker-compose
    

Usage

View running containers

> docker ps -a

View local images

> docker images

Pull image from DockerHub

> docker pull bash

Run a container

> docker run -it bash

cmder

Portable console emulator.

Installation

  1. Open PowerShell.

  2. Install cmder.

    > scoop install cmder
    
  3. Download Meslo font.

  4. Right click on download font and click 'Install'.

    install_font

  5. Open cmder from start menu.

    open_cmder

  6. Open cmder settings using keyboard shortcut Win-Alt-P.

  7. Set the font.

    set_cmder_font

  8. Set the PowerShell task.

    powershell_task

  9. Set the Ubuntu task. Change the path to use your username.

    ubuntu_task

  10. Pin cmder to the task bar. If it is the first item then you can access it using the keyboard shortcut Win-1.

    pin_cmder

References

posh-git, oh-my-posh

Better prompt.

Installation

  1. Open cmder.

  2. Open PowerShell profile.

    > vim $PROFILE
    
  3. Add posh-git and oh-my-posh.

    Import-Module posh-git
    Import-Module oh-my-posh
    Set-Theme paradox
    
  4. Open a new shell and view the result.

    oh_my_posh

References

Python

Easy to read, learn, use programming language.

Installation

> scoop install python

Usage

Check version.

> python --version

Run code in shell.

> python
Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> x = 1
>>> y = 2
>>> x + y
3
>>>

References

Pipenv

Python package management.

Installation

Install Pipenv.

> pip install --user pipenv

Open your PowerShell profile.

> vim $PROFILE

Add the following line.

$env:Path += ";C:\Users\<username>\AppData\Roaming\Python\Python37\Scripts"

Restart your shell and check the installation.

> pipenv
Usage: pipenv [OPTIONS] COMMAND [ARGS]...

Options:
  --where             Output project home information.
...

References

Jupyter Lab

Web based Notebook/REPL.

Install

conda install -c conda-forge jupyterlab

Usage

Start Jupyter

activate py3
jupyter lab

Install extension

jupyter labextension install jupyterlab_vim

win-dev's People

Contributors

ameier38 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.