summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo D Sanchez <eduardo.daniel.s.m@gmail.com>2024-08-07 01:42:27 -0400
committerGitHub <noreply@github.com>2024-08-07 14:42:27 +0900
commitc423c496a15b96cfc3c3fbd09135bcdc0c8e6b6e (patch)
tree12029d9a3dfab5845b788f41f4a569788d19f23b
parent4e85f72f0ee237bef7a1617e0cf8c811a4091d72 (diff)
downloadfzf-c423c496a15b96cfc3c3fbd09135bcdc0c8e6b6e.tar.gz
fix: Add fallback for cygwin ps (#3955)
-rw-r--r--shell/completion.bash3
-rw-r--r--shell/completion.zsh3
2 files changed, 4 insertions, 2 deletions
diff --git a/shell/completion.bash b/shell/completion.bash
index a68dac96..3eaf40da 100644
--- a/shell/completion.bash
+++ b/shell/completion.bash
@@ -410,7 +410,8 @@ _fzf_complete_kill() {
_fzf_proc_completion() {
_fzf_complete -m --header-lines=1 --no-preview --wrap -- "$@" < <(
command ps -eo user,pid,ppid,start,time,command 2> /dev/null ||
- command ps -eo user,pid,ppid,time,args # For BusyBox
+ command ps -eo user,pid,ppid,time,args 2> /dev/null || # For BusyBox
+ command ps --everyone --full --windows # For cygwin
)
}
diff --git a/shell/completion.zsh b/shell/completion.zsh
index 1ff4a4bc..217404fc 100644
--- a/shell/completion.zsh
+++ b/shell/completion.zsh
@@ -300,7 +300,8 @@ _fzf_complete_unalias() {
_fzf_complete_kill() {
_fzf_complete -m --header-lines=1 --no-preview --wrap -- "$@" < <(
command ps -eo user,pid,ppid,start,time,command 2> /dev/null ||
- command ps -eo user,pid,ppid,time,args # For BusyBox
+ command ps -eo user,pid,ppid,time,args 2> /dev/null || # For BusyBox
+ command ps --everyone --full --windows # For cygwin
)
}