How to configure a Linux environment using WSL. (Windows 11 recommended)
- You'll need to install
Ubuntufrom MicrosoftStore.
- Install and set up zsh as default kernel
sudo apt install zsh- Make it your default shell:
chsh -s $(which zsh)- Execute:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"- Add line below to your
.zshrc(generally at\\wsl.localhost\Ubuntu\home\%USER%)
plugins=(git git-flow fast-syntax-highlighting zsh-autosuggestions 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
FPATHin your.zshrcby adding the following line beforesource "$ZSH/oh-my-zsh.sh":
fpath+=${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions/src- Execute:
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions- 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