Oh My Zsh
Oh My Zsh installation with Powerlevel10k theme.
« Oh My Zsh is a community-driven framework for managing your Zsh configuration. It comes bundled with a ton of helpful functions, helpers, plugins, themes, and a few things that make you shout... ».
Oh My Zsh
Prerequisites
Installation
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Update
upgrade_oh_my_zsh
Powerlevel10k theme
Powerlevel10k is a theme for Zsh. It emphasizes speed, flexibility and out-of-the-box experience.
Installation
With using Oh My Zsh, you can install Powerlevel10k theme with the following command:
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
Then, you need to set ZSH_THEME="powerlevel10k/powerlevel10k"
in your ~/.zshrc
and restart your terminal.
echo ZSH_THEME="powerlevel10k/powerlevel10k" >> ~/.zshrc
Update
cd ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
git pull
Configuration
p10k configure
The configuration will be saved in the file ~/.p10k.zsh
.
Bonus
On trick command to install Oh My Zsh and Powerlevel10k theme
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" && \
cd ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k && \
git pull && \
echo ZSH_THEME="powerlevel10k/powerlevel10k" >> ~/.zshrc