ls_colors
Summary
Section titled “Summary”Applies the trapd00r/LS_COLORS theme — a comprehensive LS_COLORS definition for GNU ls and exa — and wires it into the Zsh completion system automatically.
Syntax / Usage
Section titled “Syntax / Usage”zi pack for trapd00r/LS_COLORSzi pack"<profile>" for trapd00r/LS_COLORSAvailable profiles: default, no-zsh-completion, no-dir-color-swap.
Details
Section titled “Details”- Provides:
LS_COLORSenvironment variable and aclrs.zshfile sourced at shell start, pluszstyle ':completion:*:default' list-colorswired to$LS_COLORS(default andno-dir-color-swapprofiles only). defaultprofile ices:git,reset,nocompile"!",lucid,atclone(runsdircolorsto generateclrs.zsh; replaces theDIRcolor with38;5;63;1bold-blue),atpull"%atclone",pick"clrs.zsh",atload(setszstylefor completion colors).no-zsh-completionprofile: same build asdefaultbut omits theatloadzstylehook — useful if you configure completion colors elsewhere.no-dir-color-swapprofile: skips thesedDIR replacement so the upstream directory color is used unchanged; still sets thezstylecompletion hook.- On macOS, the
atclonescript prefixesdircolorsandsedwithg(i.e.gdircolors,gsed) to use GNU coreutils.
Examples
Section titled “Examples”# Full install with completion colorszi pack for trapd00r/LS_COLORS
# Install without touching completion colorszi pack"no-zsh-completion" for trapd00r/LS_COLORSCaveats / Common Mistakes
Section titled “Caveats / Common Mistakes”- On macOS, GNU coreutils must be installed (
brew install coreutils); the package detects their absence and prependsgtodircolors/sed, but if they are missing theatclonehook silently produces noclrs.zsh.
See Also
Section titled “See Also”- pkg-dircolors-material — alternative Material Design color theme
- pkg-overview — how
zi packworks