Skip to content

Commit 438dc72

Browse files
docs: add ! shell functionality reference to lesson 14 (Session Management)
Co-authored-by: calebwilson706 <71669491+calebwilson706@users.noreply.github.com>
1 parent 92c4194 commit 438dc72

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tutorial/lessons/14-session-management.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,17 @@ This shows a visual breakdown of token usage — how much is taken by system pro
5555

5656
This shows request counts, token usage, and other session metrics.
5757

58+
### Running shell commands with `!`
59+
60+
You can run a shell command directly from within your Copilot session using the `!` prefix:
61+
62+
```
63+
!git status
64+
!ls exercises/sample-app/src
65+
```
66+
67+
This is useful when you want a quick terminal check — listing files, checking git state, verifying an environment variable — without asking Copilot to do it for you. The output appears inline and Copilot can see it too, so you can follow up with a question about the result.
68+
5869
### When to start fresh
5970

6071
Sometimes it's better to start over than to correct course:

0 commit comments

Comments
 (0)