Table of content:
The Z shell
(also known as zsh
) is a Unix shell that is built on top of bash (the default shell for macOS) with additional features. It's recommended to use zsh over bash. It's also highly recommended to install a framework with zsh
as it makes dealing with configuration, plugins and themes a lot nicer.
Here, we will start z shell
installation.
- Most mac already have this feature, zsh will be default after Oh My Zsh installation.
-
To check, use this command
echo $0
. If the output isbash
, proceed installation with command below:Ubuntu
sudo apt install zsh
Fedora
sudo dnf install zsh
Arch
sudo pacman -S zsh
-
Check zsh version
zsh --version
-
This feature require modified fonts, . NerdFonts need to be installed. Since there was too many font available online, you may download here:
-
After install, terminal need to be restart.
-
To begin installing
omz
, copy and paste the code below to any terminal. Please follow the required (pre & post-process) step and make sure your terminal useszsh
by default.sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
-
Install zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
-
Install zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
-
Install zsh-autocomplete
git clone https://github.com/marlonrichert/zsh-autocomplete.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autocomplete
-
Open terminal, open
zshrc
configuration file and start configure basic needs.sudo nano ~/.zshrc
-
Find
ZHS_THEME="robbyrussel"
toZHS_THEME="your_theme"
. Checkout this wiki and choose. -
Find
plugins=(git)
section on the same documents. Add this comment aftergit
,- i.e.
git zsh-autosuggestions zsh-syntax-highlighting zsh-autocomplete
- i.e.
-
Change chosen nerdfonts to your terminal.