Skip to content

Instantly share code, notes, and snippets.

@cwiederspan
Last active October 31, 2021 19:43
Show Gist options
  • Select an option

  • Save cwiederspan/e2981705c4a6a40638ec50482adde7e5 to your computer and use it in GitHub Desktop.

Select an option

Save cwiederspan/e2981705c4a6a40638ec50482adde7e5 to your computer and use it in GitHub Desktop.
Setup WSL 2 and Windows Terminal

Install the Fonts

Cascadia Code PL - Used for Windows-based apps like VS Code

Caskaydia Cove - Used for GitHub Codespaces in the browser (works on iPad)

'CaskaydiaCove Nerd Font' in VS Code Settings

Install Go

sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install golang

Clone the dotfiles into the WSL runtime

cd ~

git clone https://github.com/cwiederspan/dotfiles.git dotfiles

# Setup the dotfiles
sh ./dotfiles/setup.sh

source .bashrc

Setup the Settings for Terminal

{
    "guid": "{07b52e3e-de2c-5db4-bd2d-ba144ed6c273}",
    "hidden": false,
    "name": "Ubuntu-20.04",
    "source": "Windows.Terminal.Wsl",
    "fontFace": "Cascadia Code PL",
    "backgroundImage": "C:/Users/chwieder/OneDrive - Microsoft/Documents/dotnet_bg.png",
    "startingDirectory": "C:/Projects/GitHub/cwiederspan"
}

Set Global Git Settings

Create a .gitconfig file in the Windows C:\Users\chwieder folder and add the following content.

[user]
    name = Chris Wiederspan
    email = chris@wiederspan.com
[core]
    editor = \"C:\\Users\\chwieder\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" --wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment