WSL setup for development

anand pathak
2 min readNov 1, 2021

After years, I am using a windows laptop for development work. This will be for a short period of time, but I still need to setup the dev environment on a windows laptop.

This is just to logs the steps I took for setting up windows computer for dev work with WSL (windows subsystem with linux)

Step Terminal:

{
"background": "#282C34",
"black": "#000000",
"blue": "#61AFEF",
"brightBlack": "#5C6370",
"brightBlue": "#61AFEF",
"brightCyan": "#56B6C2",
"brightGreen": "#98C379",
"brightPurple": "#C678DD",
"brightRed": "#E06C75",
"brightWhite": "#FFFFFF",
"brightYellow": "#D19A66",
"cursorColor": "#FFFFFF",
"cyan": "#56B6C2",
"foreground": "#CCCCCC",
"green": "#98C379",
"name": "Atom One Dark",
"purple": "#C678DD",
"red": "#E06C75",
"selectionBackground": "#FFFFFF",
"white": "#ABB2BF",
"yellow": "#D19A66"
}

Setup shell:

Setup Tmux:

  • sudo apt install tmux

Step 3: Setting up vim for golang

Install nvim: sudo apt install neovim

plugins.vim

“ auto-install vim-plug if empty(glob(‘~/.config/nvim/autoload/plug.vim’)) silent !curl -fLo ~/.config/nvim/autoload/plug.vim — create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim “autocmd VimEnter * PlugInstall “autocmd VimEnter * PlugInstall | source $MYVIMRC endifcall plug#begin(‘~/.config/nvim/autoload/plugged’)
" Better Syntax Support
Plug 'sheerun/vim-polyglot'
" File Explorer
Plug 'scrooloose/NERDTree'
" Auto pairs for '(' '[' '{'
Plug 'jiangmiao/auto-pairs'
" Golang LSP server
Plug 'fatih/vim-go'
Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'}
Plug 'vim-airline/vim-airline'
Plug 'scrooloose/nerdtree'
Plug 'sebdah/vim-delve'
call plug#end()

— add coc.nvim shortcuts for golang :

This is how the windows terminal look.

References:

https://octetz.com/docs/2019/2019–04–24-vim-as-a-go-ide/

— https://linuxize.com/post/getting-started-with-tmux/

— https://medium.com/@hjgraca/style-your-windows-terminal-and-wsl2--- like-a-pro-9a2e1ad4c9d0

https://caffeinedev.medium.com/customize-your-terminal-oh-my-zsh-on-ubuntu-18–04-lts-a9b11b63f2

--

--