From f895320362e8f77c48258d5210bf95416c221f4b Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Thu, 11 Mar 2021 12:08:10 +0300 Subject: [PATCH] =?UTF-8?q?=D0=90=D0=B2=D1=82=D0=BE=D0=B4=D0=BE=D0=BF?= =?UTF-8?q?=D0=BE=D0=BB=D0=BD=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B4=D0=BB=D1=8F?= =?UTF-8?q?=20kill=20=D0=B8=20killall?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- options.zsh | 9 +++++++++ plugins.zsh | 3 +++ 2 files changed, 12 insertions(+) diff --git a/options.zsh b/options.zsh index ef9629b..24bfe4a 100644 --- a/options.zsh +++ b/options.zsh @@ -15,3 +15,12 @@ fi zmodload -i zsh/complist +zstyle ':completion:*:processes' command 'ps -ax' +zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;32' +zstyle ':completion:*:*:kill:*' menu yes select +zstyle ':completion:*:kill:*' force-list always + +zstyle ':completion:*:processes-names' command 'ps -e -o comm=' +zstyle ':completion:*:*:killall:*' menu yes select +zstyle ':completion:*:killall:*' force-list always + diff --git a/plugins.zsh b/plugins.zsh index fd2a5ff..c7ca44d 100644 --- a/plugins.zsh +++ b/plugins.zsh @@ -26,6 +26,9 @@ if command -v fzf > /dev/null 2>&1; then if [ -e /usr/share/doc/fzf/examples/key-bindings.zsh ]; then . /usr/share/doc/fzf/examples/key-bindings.zsh fi + if [ -e /usr/share/doc/fzf/examples/completion.zsh ]; then + . /usr/share/doc/fzf/examples/completion.zsh + fi fi if command -v git > /dev/null 2>&1; then antibody bundle ohmyzsh/ohmyzsh path:plugins/git