diff --git a/src/history.ts b/src/history.ts new file mode 100644 index 000000000000..938f036865b3 --- /dev/null +++ b/src/history.ts @@ -0,0 +1,29 @@ +const completionSpec: Fig.Spec = { + name: "history", + description: "Shows last 15 commands", + subcommands: [ + { + name: "0", + description: "Shows full command history", + }, + { + name: "|", + description: "Divider to run other commands on history", + subcommands: [ + { + name: "grep", + description: "Search history", + }, + ], + }, + ], + options: [ + { + name: ["--clear", "-c"], + description: "Clears history", + }, + ], + // Only uncomment if history takes an argument + // args: {} +}; +export default completionSpec;