Installation zsh oh-my-zsh configuration and auto-complete widget

Linux Learning Notes

Installation zsh Centsos oh-my-zsh configuration and auto-completion tool

  • View the current shell
    echo $SHELL
  • Install zsh
    yum install -y zsh
  • Switch the default shell
    chsh -s /bin/zsh
  • Install git
    yum install -y git
  • Installation oh-my-zsh
  1. Automatic installation
    sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  2. Installation Manual
    git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
  3. Copy the configuration file
    cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
  4. Modify Subject
    vim .zshrc 修改ZSH_THEME="ys”
  • Installation of automatic completion plugin
    's official website: Incremental ON zsh Completion
    wget -O incr-0.2.zsh https://mimosa-pudica.net/src/incr-0.2.zsh
    source incr*.zsh
  • Reopen the terminal to validate the configuration

Guess you like

Origin www.cnblogs.com/ShawnChan/p/11723626.html