美文网首页
一些常用的zsh插件

一些常用的zsh插件

作者: wangxinalex | 来源:发表于2020-02-24 23:29 被阅读0次

安装zsh

brew install zsh

安装oh-my-zsh

https://github.com/robbyrussell/oh-my-zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

zsh插件

auto-suggestions

https://github.com/zsh-users/zsh-autosuggestions

  1. Clone this repository into $ZSH_CUSTOM/plugins (by default ~/.oh-my-zsh/custom/plugins)
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
  1. Add the plugin to the list of plugins for Oh My Zsh to load (inside ~/.zshrc):
plugins=(zsh-autosuggestions)
  1. Start a new terminal session.

zsh-syntax-highlighting

https://github.com/zsh-users/zsh-syntax-highlighting

  1. Clone this repository in oh-my-zsh's plugins directory:
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
  1. Activate the plugin in ~/.zshrc:
plugins=( [plugins...] zsh-syntax-highlighting)
  1. Restart zsh (such as by opening a new instance of your terminal emulator).

zsh-history-substring-search

https://github.com/zsh-users/zsh-history-substring-search

  1. Clone this repository in oh-my-zsh's plugins directory:
git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search
  1. Activate the plugin in ~/.zshrc:
plugins=( [plugins...] history-substring-search)
  1. Source ~/.zshrc to take changes into account:
source ~/.zshrc
  1. Bind keyboard shortcuts to this script's functions.
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down

z

just add z to the plugins array in .zshrc

plugins=( [plugins...] z )

相关文章

  • Iterm2-ohmyzsh-常用插件安装

    oh-my-zsh 常用插件 1 自动跳转Finder、终端语法高亮、终端自动补全 (autojump|zsh-...

  • 一些常用的zsh插件

    安装zsh 安装oh-my-zsh https://github.com/robbyrussell/oh-my-z...

  • Zsh 常用插件

    zsh有了各种插件后才真是如虎添翼,各种命令高亮,自动补全,命令参数辅助等。 zsh插件安装方法 各种插件的安装方...

  • 常用的zsh插件

    iterm2 + oh-my-zsh简直就是神器,各种主题插件,可以找到自己喜欢的,适合自己的。今天推荐几个我常用...

  • zsh及其常用插件

    zsh可以被视为是对Bourne shell的一种扩展,完全兼容bash。它强大的自动补全功能对我还是非常有吸引力...

  • [zsh 配置] zsh命令自动补全插件

    zsh-autosuggestions自动补全插件 下载该插件到.oh-my-zsh的插件目录git clone ...

  • zsh oh-my-zsh 常用插件

    git 安装:默认已开启作用:可以使用各种 git 命令缩写。使用: 查看所有 git 命令缩写 autojump...

  • zsh 小妙招

    当然先得保证电脑安装有 zsh → 安装 zsh 传送门 绚丽的插件 oh my zsh 提供了很多插件,存放在 ...

  • terminal 问题解决汇总

    base / zsh 切换 安装了oh-my-zsh插件,但发现之前在.bash_profile自定义的一些内容都...

  • mac下item2和oh-my-zsh搭建

    插件 zsh-autosuggestions-命令行补全+提示插件incr.zsh--运用:需要把下载的文件放到/...

网友评论

      本文标题:一些常用的zsh插件

      本文链接:https://www.haomeiwen.com/subject/exwgqhtx.html