What to do if the terminal is ugly? What to do if it lacks functionality? Use zsh!
Environment: Ubuntu 22.04
Use the following command to check if zsh is already installed:
If the output is similar to
zsh 5.8.1 (x86_64-ubuntu-linux-gnu), then it is already installed, and you can skip to the next chapter on oh-my-zsh installation.
If it is not installed, use the following command to install it:
apt install zsh
Execute the following command:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
If the output is as follows, then the installation is complete:
Changing the Theme
After installation, you can apply various built-in themes. Theme List.
Located in the
.zshrc file, modify the content after the equal sign in
ZSH_THEME=, and don't forget to run the following command to apply the changes:
Note that at this point, the default bash shell file should be changed to
.zshrc instead of
.bashrc. For example, if you cannot find a command after installing certain programs, check if the configuration command was added to
.bashrc by default, and manually add it to