mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
| doc | ||
| _zplugin | ||
| LICENSE | ||
| README.md | ||
| zplugin.zsh | ||
Zplugin
Zplugin in action:
Completion handling:
Introduction
Example use:
% . ~/github/zplugin/zplugin.zsh
% zplugin load zsh-users/zsh-syntax-highlighting
% zplugin load psprint/zsh-cmd-architect
Example plugin report:
% zplugin report psprint/zsh-cmd-architect
Source zsh-cmd-architect.plugin.zsh
Autoload h-list
Autoload h-list-input
Autoload h-list-draw
Autoload zca
Autoload zca-usetty-wrapper
Autoload zca-widget
Zle -N zca-widget
Bindkey ^T zca-widget
Functions created:
h-list h-list-draw
h-list-input zca
zca-usetty-wrapper zca-widget
Example plugin unload:
% zplugin unload psprint/zsh-cmd-architect
Deleting function h-list
Deleting function h-list-draw
Deleting function h-list-input
Deleting function zca
Deleting function zca-usetty-wrapper
Deleting function zca-widget
Deleting bindkey ^T zca-widget
Unregistering plugin psprint/zsh-cmd-architect
Plugin's report saved to $LASTREPORT
Installation
Execute:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/psprint/zplugin/master/doc/install.sh)"
To update run the command again.
Zplugin will be installed into ~/.zplugin/bin. .zshrc will be updated with
single line of code that will be added to the bottom (it will be sourcing
zplugin.zsh for you). Completion will be also installed, for command zplugin
and aliases zpl, zplg.
After installing and reloading shell give Zplugin a quick try with zplugin help.
Usage
% zpl help
Usage:
-h|--help|help - usage information
load {plugin-name} - load plugin
unload {plugin-name} - unload plugin
report {plugin-name} - show plugin's report
all-reports - show all plugin reports
loaded|list - show what plugins are loaded
comp|completions - list completions in use
cdisable {cname} - disable completion `cname'
cenable {cname} - enable completion `cname'
creinstall {plugin-name} - install completions for plugin
cuninstall {plugin-name} - uninstall completions for plugin
compinit - refresh installed completions


