❗ All zinit-packages have been migrated to https://github.com/zdharma-continuum/zinit-packages You'll find the source for this here package in https://github.com/zdharma-continuum/zinit-packages/tree/HEAD/dircolors-material
Homepage link: zpm-zsh/dircolors-material
Package source: | Tarball | Binary | Git | Node | Gem |
---|---|---|---|---|---|
Status: | - | - | + (default) |
– | – |
Zinit can use a package.json
(similar in construct to the one used in npm
packages) to automatically:
- get the plugin's Git repository OR release-package URL,
- get the list of the recommended ices for the plugin,
- there can be multiple lists of ices,
- the ice lists are stored in profiles; there's at least one profile, default,
- the ices can be selectively overriden.
The package provides the
zpm-zsh/dircolors-material
definitions for GNU ls
, ogham/exa
and also setups zsh-completion system to
use the definitions.
Example invocations that'll install zpm-zsh/dircolors-material
from Git
repository in the most optimized way as described on the Zinit
Wiki:
# Download the default profile
zinit pack for dircolors-material
# Download the no-zsh-completion profile
zinit pack"no-zsh-completion" for dircolors-material
# Download the no-color-swaps profile
zinit pack"no-color-swaps" for dircolors-material
# Download the minimal profile
zinit pack"minimal" for dircolors-material
Provides the dircolors-material definitions for GNU ls
, ogham/exa
and also:
- sets up the zsh-completion system to use the definitions,
- automatically (i.e.: transparently for the updates of the plugin) swaps the color for the directory to a more bright blue (of the index 63 in the standard 256 color palette),
- uses a workaround for some old
dircolors
commands that improperly test$TERM
variable and produce empty output.
The Zinit command executed will be equivalent to:
zinit lucid \
atclone'(( !${+commands[dircolors]} )) && local P=g; \
${P}sed -i '/DIR/c\\DIR 38;5;63;1' material.dircolors; \
TERM=ansi ${P}dircolors -b material.dircolors >! colors.zsh' \
atpull'%atclone' pick"colors.zsh" nocompile'!' reset \
atload'zstyle ":completion:*:default" list-colors "${(s.:.)LS_COLORS}";' for \
zpm-zsh/dircolors-material
Provides the dircolors-material definitions for GNU ls
, ogham/exa
but
doesn't swap the directory color, i.e.: it doesn't customize the original theme.
It still initializes the zsh-completion system with the theme's colors.
The Zinit command executed will be equivalent to:
zinit lucid \
atclone'(( !${+commands[dircolors]} )) && local P=g; \
TERM=ansi ${P}dircolors -b dircolors-material >! colors.zsh' \
atpull'%atclone' pick"colors.zsh" nocompile'!' \
atload'zstyle ":completion:*:default" list-colors "${(s.:.)LS_COLORS}";' for \
zpm-zsh/dircolors-material
Provides the dircolors-material definitions for GNU ls
, ogham/exa
but
doesn't set up the zsh-completion system to use them. It still swaps the
directory color.
The Zinit command executed will be equivalent to:
zinit lucid \
atclone'(( !${+commands[dircolors]} )) && local P=g; \
${P}sed -i '/DIR/c\\DIR 38;5;63;1' material.dircolors; \
TERM=ansi ${P}dircolors -b material.dircolors >! colors.zsh' \
atpull'%atclone' pick"colors.zsh" nocompile'!' for \
zpm-zsh/dircolors-material
Provides the dircolors-material definitions for GNU ls
, ogham/exa
with both
extra functions/features disabled, i.e.: without altering the original theme and
without setting the zsh-completion system. Thus, this is a barebones profile.
The Zinit command executed will be equivalent to:
zinit lucid \
atclone'(( !${+commands[dircolors]} )) && local P=g; \
TERM=ansi ${P}dircolors -b dircolors-material >! colors.zsh' \
atpull'%atclone' pick"colors.zsh" nocompile'!' for \
zpm-zsh/dircolors-material