Skip to content

Instantly share code, notes, and snippets.

@flcdrg
Last active January 31, 2025 01:31
Show Gist options
  • Save flcdrg/796b941f1d90fc9904c3a6fe02065f4c to your computer and use it in GitHub Desktop.
Save flcdrg/796b941f1d90fc9904c3a6fe02065f4c to your computer and use it in GitHub Desktop.
WSL setup notes

Updates and Oh-My-Posh

sudo apt update
sudo apt upgrade

sudo apt install unzip

curl -s https://ohmyposh.dev/install.sh | bash -s

(exit and login again so that oh-my-posh is now in path)

Add this line to .profile

eval "$(oh-my-posh --init --shell bash --config /mnt/c/Users/david/OneDrive/Documents/ohmyposh.json)"

Install PowerShell

https://learn.microsoft.com/en-us/powershell/scripting/install/install-ubuntu?view=powershell-7.5&WT.mc_id=DOP-MVP-5001655

# Install pre-requisite packages.
sudo apt-get install -y wget apt-transport-https software-properties-common

# Get the version of Ubuntu
source /etc/os-release

# Download the Microsoft repository keys
wget -q https://packages.microsoft.com/config/ubuntu/$VERSION_ID/packages-microsoft-prod.deb

# Register the Microsoft repository keys
sudo dpkg -i packages-microsoft-prod.deb

# Delete the Microsoft repository keys file
rm packages-microsoft-prod.deb

# Update the list of packages after we added packages.microsoft.com
sudo apt-get update

sudo apt-get install -y powershell

Install Latest Git

https://git-scm.com/downloads/linux

sudo add-apt-repository ppa:git-core/ppa

sudo apt update
sudo apt upgrade

NVM

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash

(exist and login)

nvm install --lts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment