Installation
sudo apt-get install zsh
wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
chsh -s /bin/zsh
Change the default shell from bash to zsh
sudo reboot
Restart
Change theme
Website Theme Page
- The path to the theme is to make a file of a
~/.oh-my-zsh/themes
theme effective, ~/.zshrc
find a ZSH_THEME="robbyrussell"
row (about 11 lines), comment it out, add a line below ZSH_THEME="ys"
, then close the terminal and restart it.
- Note:
=
there must be no space on the right side of the symbol, otherwise it will be an error to find this topic, I was trapped here for more than half an hour.
Plug - ins
Introduction to related plugins
- Better to use
last-working-dir
, this plug-in is the role of the next time you open the terminal to the previous directory, is a very useful plug-in.
- The use of the same method, the difference is to find
plugins=(git)
this line, instead plugins=(git last-working-dir)
, also restart the terminal after the effective.
Source
- Some useful themes and plugins for zsh and Oh-my-zsh
- Make your shell stand out: The configuration of oh-my-zsh under Ubuntu
ubuntu18.04 under Installation oh-my-zsh