Linux command
antigen 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Load oh-my-zsh
antigen use oh-my-zsh
Install and load a plugin
antigen bundle [git]
Load a plugin
antigen bundle [zsh-users/zsh-autosuggestions]
Load a theme
antigen theme [robbyrussell]
Apply all changes
antigen apply
Update all plugins
antigen update
List loaded bundles
antigen list
Clear the cache
antigen reset
说明
Antigen is a plugin manager for zsh, inspired by Vundle for vim and Pathogen. It simplifies managing shell plugins (called bundles) by handling installation, loading, and updates automatically. Bundles can be loaded from oh-my-zsh, prezto, or any Git repository. The typical workflow involves sourcing antigen.zsh, declaring bundles with antigen bundle, optionally loading a theme, and calling antigen apply to activate everything. Example .zshrc configuration: ``` source ~/antigen.zsh antigen use oh-my-zsh antigen bundle git antigen bundle zsh-users/zsh-syntax-highlighting antigen theme robbyrussell antigen apply ``` Antigen caches compiled configurations for faster shell startup. After modifying bundle declarations, use antigen reset to clear the cache and reload changes.
参数
- bundle _spec_
- Install (if needed) and load a plugin; accepts GitHub shorthand (user/repo) or full URLs
- bundles
- Bulk load multiple plugins via heredoc syntax (one per line)
- use _framework_
- Load a pre-packaged framework like oh-my-zsh or prezto
- theme _name_
- Load and activate a zsh theme (call after antigen use)
- apply
- Commit the configuration; must be called at the end of bundle declarations
- update _bundle-name_
- Update specified bundle or all bundles if no name given
- list --long
- Display currently loaded bundles; --long shows detailed information
- revert
- Revert all plugins to their state before the last update
- reset
- Clear the generated cache to reload configuration changes
- selfupdate
- Update Antigen itself to the latest version
- cleanup
- Remove plugins that are no longer loaded in configuration
- purge _bundle_
- Remove a specific bundle from the system
FAQ
What is the antigen command used for?
Antigen is a plugin manager for zsh, inspired by Vundle for vim and Pathogen. It simplifies managing shell plugins (called bundles) by handling installation, loading, and updates automatically. Bundles can be loaded from oh-my-zsh, prezto, or any Git repository. The typical workflow involves sourcing antigen.zsh, declaring bundles with antigen bundle, optionally loading a theme, and calling antigen apply to activate everything. Example .zshrc configuration: ``` source ~/antigen.zsh antigen use oh-my-zsh antigen bundle git antigen bundle zsh-users/zsh-syntax-highlighting antigen theme robbyrussell antigen apply ``` Antigen caches compiled configurations for faster shell startup. After modifying bundle declarations, use antigen reset to clear the cache and reload changes.
How do I run a basic antigen example?
Run `antigen use oh-my-zsh` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does bundle _spec_ do in antigen?
Install (if needed) and load a plugin; accepts GitHub shorthand (user/repo) or full URLs