发布于
99 字 · 1 分钟

Configure oh-my-zsh

AI 摘要

作者
  • avatar
    姓名
    Corner430
    社交账号
  • Install ZSH sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

  • Install Oh my ZSH. sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

  • Install plugins.

    • autosuggesions plugin git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
    • zsh-syntax-highlighting plugin git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
    • zsh-fast-syntax-highlighting plugin git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/fast-syntax-highlighting
    • zsh-autocomplete plugin git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git $ZSH_CUSTOM/plugins/zsh-autocomplete
  • Enable plugins by adding them to .zshrc.

    • Open .zshrc vim ~/.zshrc
    • Find the line which says plugins=(git).
    • Replace that line with plugins=(git vi-mode z zsh-autosuggestions zsh-syntax-highlighting fast-syntax-highlighting zsh-autocomplete)
  • ZSH_THEME="ys"

  • References Oh my ZSH zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting zsh-autocomplete Oh my zsh.

版权声明

除非另有说明,本文内容采用 CC BY-NC-SA 4.0 许可协议。转载请注明出处。