diff --git a/aider/commands.py b/aider/commands.py index 21ca5d455..6674a48d0 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -428,7 +428,7 @@ class Commands: return self.cmd_run(args, True) def cmd_run(self, args, add_on_nonzero_exit=False): - "Run a shell command and optionally add the output to the chat" + "Run a shell command and optionally add the output to the chat (alias: !)" combined_output = None try: result = subprocess.run( diff --git a/docs/commands.md b/docs/commands.md index e95e078a2..d2c4c303e 100644 --- a/docs/commands.md +++ b/docs/commands.md @@ -17,7 +17,8 @@ - `/git `: Run a git command ## other -- `/run `: Run a shell command and optionally add the output to the chat +- `/run `: Run a shell command and optionally add the output to the chat, or use `!`. +- `/test `: Like run, but automatically adds the output to the chat on non-zero exit codes. - `/voice`: Speak to aider to [request code changes with your voice](https://aider.chat/docs/voice.html). # Prompt Toolkit defaults