LinuxCommandLibrary

zplug

Zsh plugin manager with parallel loading

TLDR

Load a plugin from GitHub

$ zplug "[user/repo]"
copy
Load Oh My Zsh plugin
$ zplug "plugins/[git]", from:oh-my-zsh
copy
Load with specific command
$ zplug "[user/repo]", as:command
copy
Load theme
$ zplug "[user/repo]", as:theme
copy
Install plugins
$ zplug install
copy
Update all plugins
$ zplug update
copy
Load all plugins
$ zplug load
copy

SYNOPSIS

zplug "repo" [, tag:value...]
zplug command

DESCRIPTION

zplug is a next-generation Zsh plugin manager featuring parallel installation, lazy loading, and dependency management. It supports loading from GitHub, Oh My Zsh, Prezto, local files, and gists.
A typical .zshrc setup:

$ source ~/.zplug/init.zsh
zplug "zsh-users/zsh-autosuggestions"
zplug "zsh-users/zsh-syntax-highlighting", defer:2
if ! zplug check; then zplug install; fi
zplug load
copy
zplug can manage not just Zsh plugins but also commands and binaries, installing them to a managed directory.

TAGS

from:source

Plugin source (github, oh-my-zsh, local, etc.)
as:type
Type: plugin, command, or theme
use:pattern
Glob pattern for files to source
at:branch/tag
Branch, tag, or commit to use
rename-to:name
Rename command
frozen:bool
Don't update this plugin
defer:level
Defer loading (0-3, higher loads later)
if:condition
Conditional loading
hook-build:command
Command to run after install

SUBCOMMANDS

install

Install plugins not yet installed
update
Update all plugins
load
Source plugins
list
List installed plugins
clean
Remove unused plugins
status
Check plugin update status
check
Check if plugin is installed

CAVEATS

zplug development has slowed. Consider zinit or sheldon for actively maintained alternatives.
First run may be slow while plugins install. Subsequent loads are fast.
Complex configurations with many deferred plugins can make debugging difficult.

SEE ALSO

zsh(1), zgen(1), antigen(1), zinit(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community