summaryrefslogtreecommitdiff
path: root/shell/completion.zsh
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-01-26 16:11:15 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-01-26 16:11:15 +0900
commit2c15cd792306119ead573c473c982b6996e11952 (patch)
tree52952834b205501ba917fe16850d7406de11890c /shell/completion.zsh
parentd6584543e993ae74615057cb02c4c831350b75bd (diff)
downloadfzf-2c15cd792306119ead573c473c982b6996e11952.tar.gz
[completion] Make kill completion header clickable
Diffstat (limited to 'shell/completion.zsh')
-rw-r--r--shell/completion.zsh3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/completion.zsh b/shell/completion.zsh
index 70c43e29..9979933e 100644
--- a/shell/completion.zsh
+++ b/shell/completion.zsh
@@ -290,7 +290,8 @@ _fzf_complete_unalias() {
}
_fzf_complete_kill() {
- _fzf_complete -m --header-lines=1 --no-preview --wrap -- "$@" < <(
+ _fzf_complete -m --header-lines=1 --no-preview --wrap --color fg:dim,nth:regular \
+ --bind 'click-header:transform:echo "change-nth($FZF_CLICK_HEADER_NTH)+change-prompt($FZF_CLICK_HEADER_WORD> )"' -- "$@" < <(
command ps -eo user,pid,ppid,start,time,command 2> /dev/null ||
command ps -eo user,pid,ppid,time,args 2> /dev/null || # For BusyBox
command ps --everyone --full --windows # For cygwin