/wsl-setup

WSL Ubuntu Dotfiles

Primary LanguageShellMIT LicenseMIT

WSL Debian/Ubuntu Dotfiles

This is a simple dotfiles and scripts to setup Windows Subsystem for Linux (WSL) with Debian and Ubuntu based Linux distributions.

I amended the fork with a jump into Neovims + the CLI tools rabbit hole

Features

Check linked files to more details.

Installation files

  • apps.sh - installs applications.
  • dotfiles.sh - installs Oh My Zsh, .zshrc and Git configs.
  • npm.sh - Node.js and npm settings.
  • fonts.sh - installs NerdFonts we need for symbols used in neovim and such forth.
  • setup.sh - main installer.
  • ssh.sh - generate SSH.
  • user.sh - user data to configuration of Git and SSH.
  • utils.sh - support functions for other installers.
  • .zshrc - terminal configs with aliases, paths, plugins and theme (this file is permanent after installation).

Prerequisites

  • Updated Windows 10 or later (recommended is Windows 11)
  • WSL 2 with Debian/Ubuntu based

Installation

Note: I use the Windows 11 Setup Script script to configure Windows, install some apps and WSL. To use the script, just download and open it with PowerShell. If you use it, skip to step Install dotfiles.

Install WSL

If you do not already have WSL, follow these steps to install. Open Powershell by searching for it in Search and right-clicking for a context menu and clicking “Run as Administrator”. Enter the following command:

wsl --install

After restarting, launch Ubuntu.exe from the Start Menu. You’ll be asked to enter a username and password (for sudo stuff).

Install dotfiles

If you already have Windows and WSL installed, run these commands in WSL:

git clone https://github.com/samuelramox/wsl-setup.git
chmod 700 wsl-setup/ -R
cd wsl-setup
./setup.sh

Remote - WSL

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

Reference

Utilities