check the env

  1. cat /etc/shells

Capture.PNG

install zsh

  1. sudo apt-get install zsh
  2. ## replace zsh as default shell manager
  3. sudo chsh -s /bin/zsh

Capture2.PNG

install oh-my-zsh

  1. wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh

Capture3.PNG

install plugin

  1. git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
  2. git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting

edit myzsh theme

  1. vim ~/.zshrc
  2. ##add plugin
  3. plugins=(git zsh-autosuggestions)
  4. ### select a theme
  5. ZSH_THEME="ys"
  6. source ~/.zshrc