From ea324e48b7b19e223e9dd6101540035a3f010379 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 25 Jul 2022 04:18:39 -0500 Subject: [PATCH] feat(zsh): improve `kill` tab completion --- .zstyle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.zstyle b/.zstyle index 8baf15e9..28a0c605 100644 --- a/.zstyle +++ b/.zstyle @@ -14,10 +14,10 @@ zstyle ':completion:*:descriptions' format '[%d]' zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} # Tab Completion for Kill -zstyle ':completion:*:*:*:*:processes' command "ps -u $USER -o pid,user,comm -w -w" +zstyle ':completion:*:*:*:*:processes' command "ps -ef -o pid,user,comm" zstyle ':fzf-tab:complete:(kill|ps):argument-rest' fzf-preview \ - '[[ $group == "[process ID]" ]] && ps --pid=$word -o cmd --no-headers -w -w' -zstyle ':fzf-tab:complete:(kill|ps):argument-rest' fzf-flags --preview-window=down,3,wrap --preview='echo {}' --bind="ctrl-r:reload(date; ps -ef)" --header="Press CTRL-R to reload" --header-lines=2 + '[[ $group == "[process ID]" ]] && ps -w $word' +zstyle ':fzf-tab:complete:(kill|ps):argument-rest' fzf-flags --preview-window=down,3,wrap # Tab completion for Systemd unit status