Revise bash.txt for command usage guidelines

Updated examples to avoid using 'cd' and clarified command usage.
pull/5140/head
Aiden Cline 2025-12-06 17:30:10 -06:00 committed by GitHub
parent 414bbd50ac
commit 32566a16a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -26,8 +26,8 @@ Usage notes:
- If you _still_ need to run `grep`, STOP. ALWAYS USE ripgrep at `rg` (or /usr/bin/rg) first, which all opencode users have pre-installed.
- When issuing multiple commands, use the ';' or '&&' operator to separate them. DO NOT use newlines (newlines are ok in quoted strings).
- Avoid using `cd` to change directories when possible. Instead, set the `workdir` parameter or use absolute paths in your commands.
<good-example>
dir_path="/foo/bar", command="pytest tests"
workdir="/foo/bar", command="pytest tests"
</good-example>
<good-example>
pytest /foo/bar/tests