Skip to content

💻 (Almost) automatic setup for a development environment via WSL2

License

Notifications You must be signed in to change notification settings

Sandbergo/wsl-setup-dotfiles

Repository files navigation

WSL Setup Dotfiles

Status License


Example terminal


📝 Table of Contents

🧐 About

An (almost) automatic script for setting up a liveable bash terminal via Ubuntu in Windows Subsystem for Linux, as well as the home for (some of my) dotfiles.

🏁 Getting Started

First, Install DejaVu Sans Mono from nerd fonts, download the Windows Compatible version.

Install WSL

If you do not already have WSL, follow these steps to install. First, download the Windows Terminal from the Microsoft Store. Open Powershell, and run the following commands:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform

Additionally, if you want to make WSL 2 your default architecture you can do so with this command:

wsl --set-default-version 2

Note: Some people have had issues with this step, I'm looking to fix this and any feedback is much appreciated.

After restarting, install Ubuntu from the Microsoft Store or through the terminal:

curl.exe -L -o ubuntu.appx https://aka.ms/wsl-ubuntu

Launch Ubuntu.exe from the Start Menu. You’ll be asked to enter a username and password.

Install packages

LSDeluxe: Download the latest .deb package from the release page and install it via:

sudo dpkg -i lsd_7.2.0_amd64.deb

Set up dotfiles

Run these commands in the bash terminal:

cd 
git clone https://github.com/Sandbergo/wsl-setup-dotfiles
chmod 700 wsl-setup-dotfiles/ -R
cd wsl-setup-dotfiles
sudo apt update
./install.sh
./symlinks.sh

Windows Terminal

Copy the settings.json file to the appropriate location in your file system.

Remote - WSL

Install the Remote - WSL extension in VSCode to get a better experience with WSL.

🎈 Usage

Fork the repository and track your own dotfiles.

✍️ Authors

🎉 Acknowledgements

About

💻 (Almost) automatic setup for a development environment via WSL2

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages