Learning one day at a time, living one day at a time, and sharing one day at a time.
Today I discovered oh-my-zsh and i am never going back. well I should say, I discovered ZSH. ZSH is a shell designed for interactive use, although it is also a powerful scripting language. Many of the useful features of bash, ksh, and tcsh were incorporated into zsh; many original features were added. The shell offers many improvements over bash, such as:
Installing zsh is as simple as running the following command:
How to Install Zsh and Oh My Zsh on Ubuntu
If you’re looking to enhance your terminal experience on Ubuntu, switching to Zsh (Z Shell) and installing Oh My Zsh is a fantastic choice. Oh My Zsh is a framework that adds themes, plugins, and better usability to Zsh, making your terminal more powerful and enjoyable to use.
In this guide, I’ll walk you through the step-by-step process of installing Zsh and setting up Oh My Zsh on Ubuntu.
Zsh offers several advantages over Bash, the default shell in Ubuntu:
When combined with Oh My Zsh, you unlock even more possibilities for improving productivity.
sudo apt update
sudo apt install zsh
zsh --version
You should see the version number of Zsh if it was installed correctly.
chsh -s $(which zsh)
After running this command, restart your terminal or log out and back in.
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
OR
sh -c "$(wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
Follow the prompts during the installation. If Zsh launches after installation, you’re good to go!
echo $SHELL
The output should display /usr/bin/zsh.
nano ~/.zshrc
ZSH_THEME="robbyrussell" (default theme).robbyrussell with any theme from the Oh My Zsh theme list. ZSH_THEME="agnoster"
CTRL + O, ENTER, CTRL + X). source ~/.zshrc
.zshrc.git or docker, modify the plugins line:
plugins=(git docker)
source ~/.zshrc
Now that you have Zsh and Oh My Zsh set up, explore the different themes and plugins to tailor your terminal experience. Oh My Zsh has a large community and rich documentation to help you customize further.
zsh
Then, re-run the chsh command to set it as the default shell.
curl or wget installed:
sudo apt install curl wget