Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

zdharma-continuum/zinit-package-dircolors-material

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Deprecated

❗ 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

zpm-zsh/dircolors-material Zinit package

Package source: Tarball Binary Git Node Gem
Status: - - +
(default)

Introduction

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 dircolors-material Package

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

Default Profile

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

no-color-swaps Profile

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

no-zsh-completion Profile

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

minimal Profile

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published