sudo apt install zsh
- Install a NerdFont, this will help your terminal to understand some of the symbols. My personal favourite is FiraCode NF.
chsh -s $(which zsh)
(set zsh as default shell, this will take effect after rebooting).
The first time you open zsh
you have to select some configurations. I recommend selecting number (2)
.
Intall oh-my-zsh
.
Once you have run a zsh shell
, .zshrc
will be generated with others like .oh-my-zsh
under $HOME
folder.
Some themes. More (external) themes.
Change the value of ZSH_THEME
with the name of the theme. With external themes
, you have to install them inside .oh-my-zsh/themes
.
Some plugins.
The ones that are used in this configuration are:
- zsh-syntax-highlighting
- zsh-autocomplete
- git (Is in conf as default)
To install these plugins or other ones, you have to clone the repository into $ZSH_CUSTOM/plugins
. Search on the repository for information about the installation on zsh
and it will be easier. Next step is to add it into plugins
variable. Example._ plugins=(zsh-syntax-highlighting zsh-autocomplete git)
.
cp .zshrc .zshrc.bak
(To have a copy of the last configuration).cp .zshrc $HOME
(Copy this custom configuration on your local).source $HOME/.zshrc
(To apply changes).