Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用antigen来管理zsh插件、安装oh-my-zsh的强烈建议 #47

Open
yuesong-feng opened this issue May 17, 2021 · 0 comments
Open

Comments

@yuesong-feng
Copy link
Contributor

yuesong-feng commented May 17, 2021

antigenzsh-users组织(zsh community projects)发布的zsh插件管理包(The plugin manager for zsh)
建议使用antigen来安装oh-my-zsh,而非在oh-my-zsh的GitHub直接安装,原因有以下几点:

  1. zsh-users组织发布了很多zsh插件,如语法高亮(zsh-syntax-highlighting),自动补全(zsh-autosuggestions),额外自动提示(zsh-completion),fish历史树搜索(zsh-history-substring-search)。这些插件都是zsh常用甚至必备插件,如不使用antigen,则需要一个一个手动安装,使用antigen可以十分方便地安装(只需要在配置文件中加一行)。
  2. 同时也完全支持oh-my-zsh的各种插件、主题,也可以选择其他zsh美化插件,插件的安装只需要在配置文件中加一行代码,source一下或者下次启动zsh终端就会自动安装,十分方便。
  3. 对于macOS系统,oh-my-zsh需要从GitHub安装,而antigen已经提交到homebrew,直接使用命令brew install antigen即可完成安装,也不用手动更新,只需要更新homebrew即可更新到最新版的antigen。
  4. 配置文件.zshrc十分简单,比oh-my-zsh简单很多,如下:
#anigen路径
source /path-to-antigen/antigen.zsh

#使用oh-my-zsh,也可以选择其他美化插件
antigen use oh-my-zsh

# oh-my-zsh的插件
antigen bundle git
antigen bundle pip

# antigen的官方插件
antigen bundle zsh-users/zsh-syntax-highlighting

# oh-my-zsh的主题
antigen theme robbyrussell

# 应用
antigen apply
@yuesong-feng yuesong-feng changed the title 使用antigen来管理zsh插件、安装oh-my-zsh的强烈建议!!! 使用antigen来管理zsh插件、安装oh-my-zsh的强烈建议 May 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant