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.
First, Install DejaVu Sans Mono from nerd fonts, download the Windows Compatible version.
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.
LSDeluxe:
Download the latest .deb
package from the release page and install it via:
sudo dpkg -i lsd_7.2.0_amd64.deb
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
Copy the settings.json
file to the appropriate location in your file system.
Install the Remote - WSL extension in VSCode to get a better experience with WSL
.
Fork the repository and track your own dotfiles.
- Lars Sandberg @Sandbergo
- Trent Nicholson @NICHTJ3
- Samuel Ramos @samuelramox