Skip to content

Commit c0cddf5

Browse files
committed
docs(example): Add virtualenv + sleep example
1 parent 8bd1179 commit c0cddf5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/examples.md

+10
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,16 @@ Omit sending {kbd}`enter` to key commands. Equivalent to
386386
Omit sending {kbd}`enter` to key commands. Equivalent to having
387387
a [`time.sleep`](time.sleep) before and after [`send_keys`](libtmux.Pane.send_keys).
388388

389+
This is especially useful for expensive commands where the terminal needs some breathing room (virtualenv, poetry, pipenv, sourcing a configuration, launching a tui app, etc).
390+
391+
````{tab} Virtualenv
392+
393+
```{literalinclude} ../examples/sleep-virtualenv.yaml
394+
:language: yaml
395+
396+
```
397+
````
398+
389399
````{tab} YAML
390400
391401
```{literalinclude} ../examples/sleep.yaml

0 commit comments

Comments
 (0)