Before using the following steps set Ubuntu's color scheme to
Tango Dark
, which is included in Windows Terminal color schemes. This is the best scheme to match the following setup.
- First install zsh and curl in wsl terminal. Also git if not installed yet, else omit.
$ sudo apt-get install zsh curl git
- Install oh-my-zsh.
When prompted to set zsh as your default shell type Yes
$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Now we can start using themes, but before that we need to add some fonts. Mainly "Meslo Nerd Font." If you don't have them store in Google Drive (fonts folder) find them here:
https://github.com/romkatv/powerlevel10k#meslo-nerd-font-patched-for-powerlevel10k
You have to install all 4 fonts in Windows, then set "Font face" to "MesloLGS NF" in windows terminal settings
Open settings, then in the profile section of Ubuntu you'll find it in the Appearance section.
- Now we're ready to install a theme. We'll use Powerlevel10k. Run in your terminal:
$ git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
After that set ZSH_THEME="powerlevel10k/powerlevel10k"
in your ~/.zshrc
file. Use vs code or vim.
- After the above changes, restart windows terminal, and the Powerlevel10k configuration wizard should appear.
You can always run
$ p10k configure
to access it later, or in case it didn't run after restarting terminal.
- Finally we'll change the dircolors that wsl uses, since they're probably hard to read (green backgrounds with hard to read letters on hidden and linked folders.) We'll use zsh-dircolors-solarized as an oh-my-zsh plugin:
$ git clone --recursive git://github.com/joel-porquet/zsh-dircolors-solarized $ZSH_CUSTOM/plugins/zsh-dircolors-solarized
Then we'll add the plugin to the list of oh-my-zsh plugin list. It may end up looking as follows in your ~/.zshrc
file: (each plugin is space separated, and git is used by default)
plugins=(git zsh-dircolors-solarized)
After enabling the plugin, in the terminal we can run the following command to setup one of the available dircolor themes:
$ setupsolarized dircolors.ansi-dark
there are other themes, but this one looks best at time of writing. See zsh-dircolors-solarized README for usage.
For VS Code, you'll have to change the terminal font to
MesloLGS NF
after installing the font. You'll also have to manually change the theme of the terminal colors to match that of the terminal. Thesettings.json
(the global one, not default or workspace) will need to be modified. You're looking for"workbench.colorCustomizations": {...}