Skip to content

Commit

Permalink
fix: Add fallback for cygwin ps (#3955)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanSM-5 authored Aug 7, 2024
1 parent 4e85f72 commit c423c49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion shell/completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}

Expand Down
3 changes: 2 additions & 1 deletion shell/completion.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}

Expand Down

0 comments on commit c423c49

Please sign in to comment.