From c423c496a15b96cfc3c3fbd09135bcdc0c8e6b6e Mon Sep 17 00:00:00 2001 From: Eduardo D Sanchez Date: Wed, 7 Aug 2024 01:42:27 -0400 Subject: [PATCH] fix: Add fallback for cygwin ps (#3955) --- shell/completion.bash | 3 ++- shell/completion.zsh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/shell/completion.bash b/shell/completion.bash index a68dac96ed6..3eaf40da8ed 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 1ff4a4bc77c..217404fc040 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 ) }