Skip to content

Drop the shell prompt from a command

Rule prose-craft.command-prompt in the Prose craft category.

Field Value
Kind pattern
Severity warning
Scope raw
Profile strict advisory
Profile normal excluded
Profile relaxed excluded

shell prompt: <match> – drop the prompt so the command can be copied

Show the command alone; name the shell in the fence’s language tag if it matters.

$ npm install

Rewrite:

npm install
❯ git status

Rewrite:

> git status is what a quoted line looks like, not a prompt

Retired Vale style – prose-craft/CommandPrompt.yml

https://github.com/srobroek/slopvac/blob/75f3bf9182c3df40197e3c4ead2432d9da01ca7b/vale-styles/prose-craft/CommandPrompt.yml