diff --git a/rules/eza.toml b/rules/eza.toml new file mode 100644 index 0000000..258c206 --- /dev/null +++ b/rules/eza.toml @@ -0,0 +1,12 @@ +command = "eza" + +[[match_err]] +pattern = [ + "no such file or directory", + "does not exist" +] +suggest = [ +''' +{{command[0]}} {{typo[1](file)}} {{opt::(?:\s)(-[\S]+)}} +''', +] diff --git a/rules/ls.toml b/rules/ls.toml new file mode 100644 index 0000000..4963829 --- /dev/null +++ b/rules/ls.toml @@ -0,0 +1,12 @@ +command = "ls" + +[[match_err]] +pattern = [ + "no such file or directory", + "does not exist" +] +suggest = [ +''' +{{command[0]}} {{typo[1](file)}} {{opt::(?:\s)(-[\S]+)}} +''', +]