zash open source code example
Example 1: oh my zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Example 2: zsh
sudo apt install zsh
## Make default shell set and logout
chsh -s $(which zsh)
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
sudo apt install zsh
## Make default shell set and logout
chsh -s $(which zsh)