zsh-config/.zshrc.d/03-completion.zsh

27 lines
1.1 KiB
Bash
Raw Permalink Normal View History

2022-09-03 13:16:34 +00:00
autoload bashcompinit
bashcompinit
2022-03-20 19:08:26 +00:00
autoload -Uz compinit
compinit
# ZSH menu styling
# Enabling completers, cache and menu with selection.
zstyle :compinstall filename '/home/yessiest/.zshrc'
zstyle ':completion:*' completer _extensions _complete _approximate
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path "$HOME/.cache/zsh/.zcompcache"
2022-09-03 13:16:34 +00:00
zstyle ':completion:*' menu select
zstyle ':completion:*' group-name ''
2022-03-20 19:08:26 +00:00
# Colors for descriptions
2022-09-03 13:16:34 +00:00
zstyle ':completion:*:*:*:*:descriptions' format '%F{green} %B%d%b:%f'
zstyle ':completion:*:*:*:*:corrections' format '%F{yellow} %B%d%b (errors: %e):%f'
2022-03-20 19:08:26 +00:00
# Custom coloring for options
zstyle ':completion:*:options' list-colors '=(#b)*(-- *)=0=38;5;241'
2022-09-03 13:16:34 +00:00
zstyle ':completion:*:commands' list-colors '=(#b)*(-- *)=0=38;5;241'
# wtf git
zstyle ':completion:*:*:git*' list-colors '=(#b)*(-- *)=0=38;5;241'
2022-03-20 19:08:26 +00:00
# Custom coloring for processes
zstyle ':completion:*:processes' list-colors '=(#b) #([0-9]#)*( *[a-z])*=0=38;5;242=32'
# Colors for LS
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
2022-09-03 13:16:34 +00:00
setopt GLOB_COMPLETE LIST_ROWS_FIRST