- Open PowerShell as Administrator and run:
wsl --install
- Restart your computer if prompted.
- Open PowerShell and install Ubuntu:
wsl --install -d Ubuntu
- Once installed, search for Ubuntu in the Start Menu and open it.
- Set up your UNIX username and password (this is different from your Windows account).
After opening Ubuntu, update and upgrade packages:
sudo apt update && sudo apt upgrade -y
Install essential tools:
sudo apt install -y curl git zsh wget
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Press Y when asked to change your default shell.
Enhance your Zsh experience with the following plugins:
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
Edit the Zsh configuration file:
nano ~/.zshrc
Find the plugins=
line and modify it:
plugins=(git zsh-syntax-highlighting zsh-autosuggestions)
Save and exit (Ctrl + X, then Y, then Enter), then apply the changes:
source ~/.zshrc
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
- Open the Zsh configuration file:
nano ~/.zshrc
- Find the line:
Replace it with:
ZSH_THEME="robbyrussell"
ZSH_THEME="powerlevel10k/powerlevel10k"
- Save and exit.
- Apply changes:
source ~/.zshrc
- Restart your terminal to begin Powerlevel10k configuration and follow the prompts.
sudo apt install -y neovim
echo "export EDITOR=nvim" >> ~/.zshrc
source ~/.zshrc
-
Install vim-plug (plugin manager for Neovim):
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
-
Open Neovim and edit the config file:
nvim ~/.config/nvim/init.vim
-
Add the following basic plugin setup:
call plug#begin() Plug 'morhetz/gruvbox' Plug 'tpope/vim-sensible' Plug 'junegunn/fzf.vim' call plug#end() syntax on colorscheme gruvbox set number
-
Save and exit (Esc, then type
:wq
). -
Install the plugins inside Neovim:
:PlugInstall
-
Restart Neovim for changes to take effect.
To use the same extensions in both environments:
- Open VS Code on Windows.
- Sign in to your GitHub or Microsoft account to enable Settings Sync.
- Open VS Code inside WSL using:
code .
- Sign in again and enable syncing.
- Your extensions and settings should now be synced!
- Zsh is an interactive shell for running commands, while Neovim is a powerful text editor.
- Zsh helps with command-line efficiency, auto-suggestions, and plugins.
- Neovim is optimized for coding, with syntax highlighting, plugins, and customization.
- Using Both: You can configure Neovim as your Zsh editor by setting:
This allows you to edit files inside your terminal seamlessly.
export EDITOR=nvim
Pros: ✅ Neovim as default editor in Zsh streamlines workflow. ✅ Zsh enhances command-line experience.
Cons: ❌ Using both might be overwhelming for beginners. ❌ Requires time to configure properly.
✅ Now you have the perfect dual-terminal setup: Windows for daily tasks & Ubuntu for development! 🚀