From 50683fe436e4e7f86cafa0cca5b0f73f80102d75 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Sat, 6 May 2023 22:37:41 -0700 Subject: [PATCH] zsh: add new zsh completions --- .zshrc | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/.zshrc b/.zshrc index 75efe88..f8b43ba 100644 --- a/.zshrc +++ b/.zshrc @@ -123,20 +123,30 @@ Set the SKIP_P10K_THEME environment variable to 'true' or make a configuration t ## ZSH Completion Options >>> { # Mine - # zstyle ':completion:*' completer _expand _complete _ignored _prefix - # zstyle ':completion:*' expand prefix suffix - # zstyle ':completion:*' file-sort access - # zstyle ':completion:*' ignore-parents parent pwd directory - # zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} - # zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s - # zstyle ':completion:*' matcher-list '' 'm:{[:lower:]}={[:upper:]}' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'r:|[._-]=** r:|=**' - # zstyle ':completion:*' menu select=long - # zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s - # zstyle :compinstall filename '/home/blake/.zshrc' + zstyle ':completion:*' completer _expand _complete _ignored _correct _approximate + zstyle ':completion:*' completions 1 + zstyle ':completion:*' expand prefix suffix + zstyle ':completion:*' format 'Completing %d' + zstyle ':completion:*' glob 1 + zstyle ':completion:*' group-name '' + zstyle ':completion:*' ignore-parents parent pwd .. + zstyle ':completion:*' insert-unambiguous true + zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} + 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 - 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:*' 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:*' rehash true # automatically find new executables in path # Speed up completions zstyle ':completion:*' accept-exact '*(N)'