Beautiful $hell With zsh
Table of Contents
Setup a beautiful terminal using zsh and ohmyzsh
ZSH = Z Shell is an extended version of the Bourne Shell (sh), with plenty of new features, and support for plugins and themes.
Oh-My-Zsh = is a plugin for zsh, it include many themes and addons.
1. Installing zsh
Debian:
$ sudo apt install zsh
Fedora
$ sudo dnf install zsh
2. Setup zsh
You will see this
This is the Z Shell configuration function for new users,
zsh-newuser-install.
You are seeing this message because you have no zsh startup files
(the files .zshenv, .zprofile, .zshrc, .zlogin in the directory
~). This function can help you with a few settings that should
make your use of the shell easier.
You can:
(q) Quit and do nothing. The function will be run again next time.
(0) Exit, creating the file ~/.zshrc containing just a comment.
That will prevent this function being run again.
(1) Continue to the main menu.
(2) Populate your ~/.zshrc with the configuration recommended
by the system administrator and exit (you will need to edit
the file by hand, if so desired).
--- Type one of the keys in parentheses ---
Input ‘2’ and it will create a file “~/.zshrc”
3. Installing Oh-my-zsh
Using curl
$ sh -c "$(wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
Change default to zsh
Time to change your default shell to zsh:
Do you want to change your default shell to zsh? [Y/n] Y
Changing your shell to /usr/bin/zsh...
4. Changing themes
$ sudo gedit ~/.zshrc
Find
ZSH_THEME="robbyrussell"
Here you can change it.
Good themes:
- jonathon