| 45 | }; |
| 46 | |
| 47 | const preferNotMatching = matches => (a, b) => { |
| 48 | const aMatches = matches(a); |
| 49 | return matches(b) === aMatches ? 0 : (aMatches ? 1 : -1); |
| 50 | }; |
| 51 | |
| 52 | const deprioritizedProcesses = new Set(['iTerm', 'iTerm2', 'fkill']); |
| 53 | const isDeprioritizedProcess = process_ => deprioritizedProcesses.has(process_.name); |