This content originally appeared on DEV Community and was authored by Harry Tanama
Install ZSH
Ubuntu/Debian Base:
sudo apt install zsh
Arch Linux Base:
sudo pacman -S zsh
Install Oh-my-zsh – https://github.com/ohmyzsh/ohmyzsh
Dependencies: Git, Zsh, curl, or wget
Arch Linux Base:
sudo apt install git curl
Install Oh My Zsh
Run this command in your terminal:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Read more instruction from ohmyzsh website: https://github.com/ohmyzsh/ohmyzsh
Install Powerlevel10k – https://github.com/romkatv/powerlevel10k
Clone the Powerlevel10k repository into your Oh My Zsh themes directory:
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k"
Read more information about Powerlevel10k at https://github.com/romkatv/powerlevel10k
Configure Your Theme
Edit your .zshrc file:
nano ~/.zshrc
Find the line that says ZSH_THEME=”robbyrussell” and change it to:
ZSH_THEME="powerlevel10k/powerlevel10k"
Install Recommended Fonts from Nerd Fonts
https://www.nerdfonts.com/font-downloads
Powerlevel10k works best with Nerd Fonts. Install one of these MesloLGS fonts from the nerd font website above:
# Download and install MesloLGS NF fonts to this folder
mkdir -p ~/.local/share/fonts
And run the command below to apply the fonts
fc-cache -f -v
Set Terminal Font in Linux
Configure your terminal to use the installed Nerd Font:
Preferences → Profiles → Font → “MesloLGS NF”
Restart Your Shell:
source ~/.zshrc
Configure Powerlevel10k
The configuration wizard should start automatically. If not, run:
p10k configure
Optional: Popular Oh My Zsh Plugins
While configuring, you might want to add some useful plugins. Edit ~/.zshrc and find the plugins line:
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
web-search
copyfile
copybuffer
dirhistory
autojump
fzf
)
More plugin can be found here https://github.com/ohmyzsh/ohmyzsh/wiki/plugins
# zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
Apply Changes restart the shell:
source ~/.zshrcc
Your terminal should now display the beautiful Powerlevel10k theme! If you ever want to reconfigure it, just run p10k configure again.
p10k configure
This content originally appeared on DEV Community and was authored by Harry Tanama