hellobrian / old-brianhan.co

Personal website and blog built with Gatsby📝
https://www.brianhan.co/
1 stars 0 forks source link

update wsl post #29

Open hellobrian opened 4 years ago

hellobrian commented 4 years ago

omg...way easier to dev on windows with vscode remote

hellobrian commented 4 years ago

Update on a fresh PC:

Get WSl 2 setup with Ubuntu 20:

https://docs.microsoft.com/en-us/windows/wsl/install-win10

Setup zsh:

Install NVM

https://github.com/nvm-sh/nvm#installing-and-updating

# change into ~ dir
cd ~

# This loads nvm
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" 

Install vscode for windows

you should be prompted to install "Remote WSL" so you can connect to ubuntu.

Setup git

sudo apt update
sudo apt install git