1.autojump

  1. 1.安装
  2. brew install autojump
  3. 2.配置
  4. vi ~/.zshrc
  5. plugins=(
  6. autojump
  7. )
  8. 3.source $ZSH/oh-my-zsh.sh后加入
  9. [ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh
  10. # 这段文本在brew install autojump之后一般会提示给用户
  11. 4.更新配置
  12. . ~/.zshrc
  13. 5.使用
  14. # 原理
  15. # 在你每次启动命令时记录你当前位置,并把它添加进它自身的数据库中,这样,某些目录比其它一些目录添加的次数多,这些目录一般就代表你最重要的目录,而它们的"权重"也会增大
  16. j [目录]

2.zsh-syntax-highlighting

  1. 1.安装
  2. git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting/
  3. 2.配置
  4. vi ~/.zshrc
  5. plugins=(
  6. autojump
  7. zsh-syntax-highlighting
  8. )
  9. 3.更新
  10. . ~/.zshrc

3.zsh-autosuggestion

  1. 1.安装
  2. git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions/
  3. 2.配置
  4. vi ~/.zshrc
  5. plugins=(
  6. autojump
  7. zsh-syntax-highlighting
  8. zsh-autosuggestions
  9. )
  10. 3.更新
  11. . ~/.zshrc

4.history-substring-search

  1. 1.安装
  2. git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search
  3. 2.配置
  4. vi ~/.zshrc
  5. plugins=(
  6. autojump
  7. zsh-syntax-highlighting
  8. zsh-autosuggestions
  9. history-substring-search
  10. )
  11. 3.更新
  12. . ~/.zshrc
  13. 4.设置
  14. bindkey查看现在key绑定状态
  15. # 绑定上/下方向键
  16. bindkey '^[[A' history-substring-search-up
  17. bindkey '^[[B' history-substring-search-down
  18. 5.使用
  19. 输入任意命令的部分,然后上/下方向键即可

5.git

  1. # 系统自带,直接加入plugins中打开即可

6.extract

  1. # 系统自带,直接加入plugins中打开即可
  2. x file.zip/file.rar/file.tar.gz...