From 4382797c256874872ecdcb93c05a7fe0b588b0a5 Mon Sep 17 00:00:00 2001 From: thek4n Date: Thu, 5 Dec 2024 21:53:50 +0300 Subject: [PATCH] zsh complete system --- home/user/.config/zsh/completion | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/home/user/.config/zsh/completion b/home/user/.config/zsh/completion index 82e7808..e784837 100644 --- a/home/user/.config/zsh/completion +++ b/home/user/.config/zsh/completion @@ -19,6 +19,8 @@ zstyle ':completion:*' use-compctl false zstyle ':completion:*' verbose true zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd' zstyle ':completion:*:*:extract:*' file-patterns '*.tar* *.lzma *.bz2 *.zip *.7z' +zstyle ':completion:*' complete-options true +zstyle ':completion:*' squeeze-slashes true zstyle ':completion:*' completer _complete _match _approximate zstyle ':completion:*:match:*' original only @@ -31,6 +33,11 @@ zstyle ':completion:*' squeeze-slashes true zstyle ':completion:*:cd:*' ignore-parents parent pwd +zstyle ':completion:*:messages' format ' %F{purple} -- %d --%f' +zstyle ':completion:*:warnings' format ' %F{red}-- no matches found --%f' + +zstyle ':autocomplete:*' insert-unambiguous true + compdef _directories _d compdef _files _f compdef _directories mcd