mirror of
https://github.com/withfig/autocomplete.git
synced 2025-12-13 20:36:48 +01:00
fix(kill): possible null exception (#2576)
This commit is contained in:
@@ -40,7 +40,7 @@ const completionSpec: Fig.Spec = {
|
||||
// Bash's `kill` builtin has different output to /bin/kill
|
||||
script: ["env", "kill", "-l"],
|
||||
postProcess: (out) =>
|
||||
out.match(/\w+/g).map((name) => ({
|
||||
out.match(/\w+/g)?.map((name) => ({
|
||||
name,
|
||||
description: `Send ${name} instead of TERM`,
|
||||
icon: "fig://icon?type=string",
|
||||
|
||||
Reference in New Issue
Block a user