Skip to content

GuxtavoLiu/wsl-linux-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

wsl-linux-env

How to configure a Linux environment using WSL. (Windows 11 recommended)

First of all

  • You'll need to install Ubuntu from MicrosoftStore.

Install zsh + OhMyZsh

Step 1: zsh

  • Install and set up zsh as default kernel
sudo apt install zsh
  • Make it your default shell:
chsh -s $(which zsh)

Step 2: Oh My Zsh

  • Execute:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Step 3: plugins (optional):

  • Add line below to your .zshrc (generally at \\wsl.localhost\Ubuntu\home\%USER%)
plugins=(git git-flow fast-syntax-highlighting zsh-autosuggestions zsh-completions)

3.1 zsh-completions

  • Execute:
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions
  • Add it to FPATH in your .zshrc by adding the following line before source "$ZSH/oh-my-zsh.sh":
fpath+=${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions/src

3.2 zsh-autosuggestions

  • Execute:
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

3.3 fast-syntax-highlighting

  • Execute the command below:
git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git \
  ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/fast-syntax-highlighting

About

How to configure a Linux environment using WSL. (Windows 11 recommended)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages