mirror of
https://github.com/aljazceru/opencode.git
synced 2026-01-06 09:24:55 +01:00
docs: fix
This commit is contained in:
@@ -103,20 +103,6 @@ Start a line with `!` to run a shell command. The output is added to the convers
|
|||||||
!ls -la
|
!ls -la
|
||||||
```
|
```
|
||||||
|
|
||||||
Commands run in your session's working directory and share state across runs. Environment variables and directory changes persist while the session is open.
|
|
||||||
|
|
||||||
```bash frame="none"
|
|
||||||
!export FOO=bar
|
|
||||||
!echo $FOO
|
|
||||||
```
|
|
||||||
|
|
||||||
Chain commands with `&&` or `;`, and quote paths with spaces. Use absolute paths when possible for reliability.
|
|
||||||
|
|
||||||
```bash frame="none"
|
|
||||||
!npm install && npm test
|
|
||||||
!python "/path/with spaces/script.py"
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### Editor setup
|
### Editor setup
|
||||||
|
|||||||
Reference in New Issue
Block a user