2021-11-26 13:01:28 +00:00
|
|
|
# Important
|
|
|
|
zstyle ':completion:*:default' menu select=2
|
|
|
|
|
|
|
|
# Completing Groping
|
|
|
|
zstyle ':completion:*:options' description 'yes'
|
|
|
|
zstyle ':completion:*:descriptions' format '%F{yellow}Completing %B%d%b%f'
|
|
|
|
zstyle ':completion:*' group-name ''
|
|
|
|
|
|
|
|
# Completing misc
|
|
|
|
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
|
|
|
|
zstyle ':completion:*' verbose yes
|
|
|
|
zstyle ':completion:*' completer _expand _complete _match _prefix _approximate _list _history
|
|
|
|
zstyle ':completion:*:*files' ignored-patterns '*?.o' '*?~' '*\#'
|
|
|
|
zstyle ':completion:*' use-cache true
|
|
|
|
zstyle ':completion:*:*:-subscript-:*' tag-order indexes parameters
|
|
|
|
|
|
|
|
# Directory
|
|
|
|
zstyle ':completion:*:cd:*' ignore-parents parent pwd
|
|
|
|
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
|
|
|
|
|
|
|
|
# default: --
|
|
|
|
zstyle ':completion:*' list-separator '-->'
|
|
|
|
zstyle ':completion:*:manuals' separate-sections true
|
|
|
|
|
|
|
|
# Menu select
|
|
|
|
zmodload -i zsh/complist
|
|
|
|
bindkey -M menuselect '^h' vi-backward-char
|
|
|
|
bindkey -M menuselect '^j' vi-down-line-or-history
|
|
|
|
bindkey -M menuselect '^k' vi-up-line-or-history
|
|
|
|
bindkey -M menuselect '^l' vi-forward-char
|
|
|
|
#bindkey -M menuselect '^k' accept-and-infer-next-history
|
|
|
|
|
|
|
|
autoload -Uz cdr
|
|
|
|
autoload -Uz history-search-end
|
|
|
|
autoload -Uz modify-current-argument
|
|
|
|
autoload -Uz smart-insert-last-word
|
|
|
|
autoload -Uz terminfo
|
|
|
|
autoload -Uz vcs_info
|
|
|
|
autoload -Uz zcalc
|
|
|
|
autoload -Uz zmv
|
|
|
|
autoload -Uz run-help-git
|
|
|
|
autoload -Uz run-help-svk
|
|
|
|
autoload -Uz run-help-svn
|
2022-01-16 11:55:30 +00:00
|
|
|
|
|
|
|
autoload -Uz compinit
|
|
|
|
compinit
|