zsh: add new zsh completions

This commit is contained in:
PowerUser64 2023-05-06 22:37:41 -07:00
parent d0a2ed67d3
commit 50683fe436

34
.zshrc
View file

@ -123,20 +123,30 @@ Set the SKIP_P10K_THEME environment variable to 'true' or make a configuration t
## ZSH Completion Options >>> ## ZSH Completion Options >>>
{ {
# Mine # Mine
# zstyle ':completion:*' completer _expand _complete _ignored _prefix zstyle ':completion:*' completer _expand _complete _ignored _correct _approximate
# zstyle ':completion:*' expand prefix suffix zstyle ':completion:*' completions 1
# zstyle ':completion:*' file-sort access zstyle ':completion:*' expand prefix suffix
# zstyle ':completion:*' ignore-parents parent pwd directory zstyle ':completion:*' format 'Completing %d'
# zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} zstyle ':completion:*' glob 1
# zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s zstyle ':completion:*' group-name ''
# zstyle ':completion:*' matcher-list '' 'm:{[:lower:]}={[:upper:]}' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'r:|[._-]=** r:|=**' zstyle ':completion:*' ignore-parents parent pwd ..
# zstyle ':completion:*' menu select=long zstyle ':completion:*' insert-unambiguous true
# zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
# zstyle :compinstall filename '/home/blake/.zshrc' zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' list-suffixes true
zstyle ':completion:*' matcher-list '' 'm:{[:lower:]}={[:upper:]}' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'r:|[._-]=** r:|=**'
zstyle ':completion:*' max-errors 1 not-numeric
zstyle ':completion:*' menu select=0
zstyle ':completion:*' original false
zstyle ':completion:*' prompt 'Select a correction (%e)'
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle ':completion:*' substitute 1
zstyle ':completion:*' verbose true
zstyle :compinstall filename '/home/blake/.zshrc'
# Manjaro's # Manjaro's
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' # Case insensitive tab completion # zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' # Case insensitive tab completion
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}" # Colored completion (different colors for dirs/files/etc) # zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}" # Colored completion (different colors for dirs/files/etc)
zstyle ':completion:*' rehash true # automatically find new executables in path zstyle ':completion:*' rehash true # automatically find new executables in path
# Speed up completions # Speed up completions
zstyle ':completion:*' accept-exact '*(N)' zstyle ':completion:*' accept-exact '*(N)'