Oh My ZSH
Install ZSH
sudo apt get install zsh -y
Install oh my zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Install powerlevel10k
Manual font installation
- Download these four ttf files:
Select all the four font files, rigtht mouse -> more options -> install for all users
- Windows Terminal by Microsoft (the new thing): Open Settings (Ctrl+,), click either on the selected profile under Profiles or on Defaults, click Appearance and set Font face to
MesloLGS NF.
Oh My Zsh
-
Clone the repository:
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10kUsers in China can use the official mirror on gitee.com for faster download.
中国用户可以使用 gitee.com 上的官方镜像加速下载.git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k -
Set
ZSH_THEME="powerlevel10k/powerlevel10k"in~/.zshrc.
Configuration wizard
Type p10k configure to access the builtin configuration wizard right from your terminal.
Screen recording
All styles except Pure are functionally equivalent. They display the same information and differ only in presentation.
Configuration wizard creates ~/.p10k.zsh based on your preferences. Additional prompt customization can be done by editing this file. It has plenty of comments to help you navigate through configuration options.