mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-24 22:14:37 +00:00
Revise bash.txt for command usage guidelines
Updated examples to avoid using 'cd' and clarified command usage.
This commit is contained in:
parent
414bbd50ac
commit
32566a16a5
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue