fix: Add fallback for cygwin ps (#3955)

This commit is contained in:
Eduardo D Sanchez
2024-08-07 01:42:27 -04:00
committed by GitHub
parent 4e85f72f0e
commit c423c496a1
2 changed files with 4 additions and 2 deletions

View File

@@ -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
)
}

View File

@@ -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
)
}