I like z shell. z shell (zsh) is built on top of bash, so your bash script should run without any modification. Here is how you can install zsh.
sudo apt install zsh
Here is how you can make zsh your default shell.
sudo sh -c "echo $(which zsh) >> /etc/shells" && chsh -s $(which zsh)
You may be prompted to create ~/.zshrc (equivalent to ~/.bashrc) when you start your terminal with zsh.
Once you have zsh installed, it’s time to install oh-my-zsh. It’s another cool open source project that allows you to have cool prompt on your terminal.
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
We don’t stop here. To make your prompt even cooler especially for your git operations, we install p10k.
Install p10k manually.
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc
Close your terminal and restart it.
Now you get a prompt like the following. It doesn’t show the right glyphs because you don’t have the right fonts and set to be used on your terminal.
Let’s download and install Nerd Fonts. First, clone this repo.
git clone https://github.com/ryanoasis/nerd-fonts.git
It takes some time for the whole repo to be downloaded.
Install the fonts by running the script.
cd nerd-fonts ./install.sh FiraCode
Now change your font of your terminal profile to FiraCode Nerd Font Mono Regular and then run the following command.
If you run through the wizard, you get your cool prompt! 🙂