Powerlevel9k has been discontinued, see the note at the top of https://github.com/powerlevel9k/powerlevel9k. It's highly recommended to upgrade to Powerlevel10k.
Here's how to upgrade:
- Add powerlevel10k to the list of Oh My Zsh themes.
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
sed -i.bak 's/powerlevel9k/powerlevel10k/g' ~/.zshrc
- Restart Zsh.
Once you restart Zsh, prompt configuration wizard should start automatically. If it doesn't, type
p10k configure. At some point the wizard will ask whether you want a one-line or a two-line prompt. The two-line version gives you a lot more room for typing commands, so you'll want to choose that. Two-line prompt usually wastes half of terminal's vertical space but with Powerlevel10k you have an option to enable Transient Prompt to avoid this downside.
In addition, you might want to add these lines to
# My Windows home directory.
hash -d w=/mnt/c/Users/Pawar
This establishes bidirectional mapping between
/mnt/c/Users/Pawar. Instead of
/mnt/c/Users/Pawar/Downloads prompt will display
~w/Downloads. You can type
cd ~w/Downloads instead of
cd /mnt/c/Users/Pawar/Downloads, etc. Tab-completion understand this mapping, too. So
cd ~w/Tab will work.