Powerlevel10k & Tabby
How to properly add Powerlevel10k to Tabby
Required configuration:
- You are a Mac user (not to say lover ;-) )
- Tabby is already installed on your Mac (http://tabby.sh)
- Oh My Zsh is already installed and working (https://ohmyz.sh)
Installing PowerLevel10k optimized fonts
The first thing to do is to download the optimized fonts “required” by Powerlevel10k and install them on your Mac.
Unlike iTerms2, most other terminal apps are requiring a manual installation of the required fonts. In case the below links are broken, check the Powerlevel10k repo on Github for up-to-date links: https://github.com/romkatv/powerlevel10k#fonts
- Donwload the fonts:
MesloLGS NF Regular.ttf
MesloLGS NF Bold.ttf
MesloLGS NF Italic.ttf
MesloLGS NF Bold Italic.ttf - Install the fonts by double clicking on the downloaded files to open Apple Font Book. The install prompt should popup on your screen. Click on the install font at the boom of the popup window.
Once the font installation is competed you can check your font configuration on the main Font Book window
Now that the optimized fonts are installed, let’s make sure that Tabby is using them by opening Tabby’s preferences and going to the Appearance section:
Adding Powerlevel10k to Oh My Zsh
Open Tabby and type in the following command
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
This will install Powerlevel10k in your oh my zsh folder under the custom/themes path.
Now just open a new tab or window and you should be facing powerlevel10k configurator welcome screen and follow the steps.
One thing I had to do, edit my .zshrc file change how the ~/.p10k.zsh
file is loaded.
if [ -f ~/.p10k.zsh ]; then source ~/.p10k.zsh; fiin stead of
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
Updating Powerlevel10k
git -C ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k pull