Installing and Setting up Oh-my-zsh Terminal on Windows

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)"
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

Extra

  • Add an alias in the .zshrc file
alias -g home="~ && /mnt/c/Users/yourusername"
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
plugins=( 
# other plugins...
zsh-autosuggestions
)

You are all set!!

--

--

--

Copy and Paste what’s on my mind. Perfect.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Pondering and Wondering — Why my India Based Students Were Unable to Attend My Online Class

What working remotely has taught me about accessibility and strategic work

Some tips for SQL injections

sql injection | LaptrinhX

Executive Brief: Accessibility — What Stakeholders and Developers Need to Know

Load Test a Mobile App API with Rungutan

How to deal with Floating-Point

5 vim/tmux commands to get you through your first day

DevOps must-reads: 7 titles every practitioner should read

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Dong Xia

Dong Xia

Copy and Paste what’s on my mind. Perfect.

More from Medium

Setup Guide for a cool terminal on Windows with Windows Terminal and WSL

PyCharm and VSCode

Sending iMessages with Python on a Mac

Delete all messages from a Slack channel