Just step by step
Let’s Go
- Go to Microsoft Store
- Install Windows Terminal App
- Install a WSL (Windows Subsystem for Linux) Ubuntu App
- Search for Windows Features. Check on Windows Subsystem for Linux. Click ok. Will apply the changes. Restart the computer.
- Open Ubuntu App. It will start installing.
- Open Windows Terminal App. Dropdown, Select Ubuntu terminal
- Update and install. Run the following 3 codes
sudo apt-get update
sudo apt-get upgrade
sudo apt install zsh
- Install git for windows
https://gitforwindows.org/
- Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
- Clone powerlevel10k
https://github.com/romkatv/powerlevel10k#oh-my-zsh
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
- In the .zshrc file change the theme.
code ~/.zshrcSet ZSH_THEME="powerlevel10k/powerlevel10k"
- Install the MesloLGS NF fonts
https://github.com/romkatv/powerlevel10k#meslo-nerd-font-patched-for-powerlevel10k
- For VSCode in setting.json add
"terminal.integrated.fontFamily": "MesloLGS NF"
- In windows terminal. Open JSON file. Add inside the ubuntu object
"font": { "face": "MesloLGS NF"}
- Customize terminal look. In Ubuntu terminal run
p10k configure
Follow the questions and enter you’re choice. If the MesloLGS NF fonts were installed correctly, you will see a diamond. Else it will be [] empty box.
Extra
- Add an alias in the .zshrc file
alias -g home="~ && /mnt/c/Users/yourusername"
Having this alias make cd to root window file much easier
cd homeThis is shortcut for the same as.cd ~
(this will cd into the WSL root-main folder)Then
cd /mnt/c/Users/yourusername
(this will cd into the Window root-main folder)
- Install autosuggesstions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
In the .zshrc file add
plugins=(
# other plugins...
zsh-autosuggestions
)