Skip to content

Commit 5a93b8d

Browse files
committed
feat(hstr): add completion spec (withfig#1804)
1 parent aef52ac commit 5a93b8d

1 file changed

Lines changed: 59 additions & 0 deletions

File tree

‎src/hstr.ts‎

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
const completionSpec: Fig.Spec = {
2+
name: "hstr",
3+
description: "Shell history suggest box - easily view, navigate and search your command history",
4+
options: [
5+
{
6+
name: ["-h", "--help"],
7+
description: "Display help",
8+
},
9+
{
10+
name: ["-V", "--version"],
11+
description: "Display version information",
12+
},
13+
{
14+
name: ["-n", "--non-interactive"],
15+
description: "Print filtered history without interactive mode",
16+
args: {
17+
name: "filter",
18+
isOptional: true,
19+
},
20+
},
21+
{
22+
name: ["-k", "--kill-last-command"],
23+
description: "Delete the last command from history",
24+
},
25+
{
26+
name: ["-f", "--favorites"],
27+
description: "Display favorites view",
28+
},
29+
{
30+
name: ["-s", "--show-configuration"],
31+
description: "Show shell configuration",
32+
},
33+
{
34+
name: ["-B", "--show-bash-configuration"],
35+
description: "Show bash-specific configuration",
36+
},
37+
{
38+
name: ["-Z", "--show-zsh-configuration"],
39+
description: "Show zsh-specific configuration",
40+
},
41+
{
42+
name: ["-b", "--show-blacklist"],
43+
description: "Show commands excluded from history indexing",
44+
},
45+
{
46+
name: ["-t", "--is-tiocsti"],
47+
description: "Detect TIOCSTI support and print result",
48+
},
49+
{
50+
name: ["-i", "--insert-in-terminal"],
51+
description: "Insert specified command into terminal prompt",
52+
args: {
53+
name: "command",
54+
},
55+
},
56+
],
57+
};
58+
59+
export default completionSpec;

0 commit comments

Comments
 (0)