Oh-My-Zsh is a terminal enhancement tool that lets you customize themes and plugins. It makes working in the terminal much more enjoyable. Let me jot down how to install it.
- Install Zsh
BASH
sudo apt install zsh -y
- Install Oh-My-Zsh:
The installer will ask whether you want to switch to Zsh. You can also switch manually with chsh -s $(which zsh), then verify your current shell with echo $SHELL (you may need to reconnect to your server).
BASH
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Download the recommended font, install it, and set your terminal font to
MesloLGS NF:BASHwget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf && wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf && wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf && wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttfRemove the downloaded font files and install the theme and plugins:
Shell
# remove the installed font
rm -rf MesloLGS*.ttf
# powerlevel10k
git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
# 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
# edit the zshrc
vi ~/.zshrc
.ZSHRC
# Change the theme of zsh
ZSH_THEME="powerlevel10k/powerlevel10k"
# Enable the plugins
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
)
Then reconnect to your server. Normally, you'll be taken to Oh-My-Zsh's configuration.
Have fun!