Install Zsh on the Raspberry Pi
The previous article said that the Raspberry Pi, which has been idle for more than a year, has been built to build a running environment, so how can we face such an ugly Bash, of course, it must be replaced by zsh.
- Install zsh
- Install oh-my-zsh
- Change default terminal
- Change theme of zsh
Zsh is a powerful terminal with many advantages. See them in This.
sudo apt-get install zsh -y
Oh-my-zsh is a one-click configuration tool for use with zsh.
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Make sure there is no problem before you change it.
chsh -s /bin/zsh
They are many choices, you can try more, I use
I used 4 plugins, which are
zsh-syntax-highlighting. Where git and extract are provided by oh-my-zsh, the other two need to be installed separately. Configured in
.zshrc as follows:
Official Github Address had introduced a log, I used the manual installation method:
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
Then add in the bottom of
This one is easy to install by apt:
apt-get install zsh-syntax-highlighting
Then add in