Skip to content

Commit 8f21249

Browse files
committed
docs: Console highlighting
1 parent 3db13fd commit 8f21249

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ web](https://leanpub.com/the-tao-of-tmux/read).
2121

2222
## Pip
2323

24-
```shell
24+
```console
2525
$ pip install --user tmuxp
2626
```
2727

2828
## Homebrew
2929

30-
```shell
30+
```console
3131
$ brew install tmuxp
3232
```
3333

@@ -55,19 +55,19 @@ windows:
5555
5656
Save as _mysession.yaml_, and load:
5757
58-
```sh
58+
```console
5959
$ tmuxp load ./mysession.yaml
6060
```
6161

6262
Projects with _.tmuxp.yaml_ or _.tmuxp.json_ load via directory:
6363

64-
```sh
64+
```console
6565
$ tmuxp load path/to/my/project/
6666
```
6767

6868
Load multiple at once (in bg, offer to attach last):
6969

70-
```sh
70+
```console
7171
$ tmuxp load mysession ./another/project/
7272
```
7373

@@ -93,7 +93,7 @@ tmuxp checks for configs in user directories:
9393
Load your tmuxp config from anywhere by using the filename, assuming
9494
_\~/.config/tmuxp/mysession.yaml_ (or _.json_):
9595

96-
```sh
96+
```console
9797
$ tmuxp load mysession
9898
```
9999

@@ -109,7 +109,7 @@ _New in 1.6.0_:
109109
server, session, and window in
110110
[libtmux](https://github.com/tmux-python/libtmux) objects.
111111

112-
```shell
112+
```console
113113
$ tmuxp shell
114114

115115
(Pdb) server
@@ -134,7 +134,7 @@ Python 3.7+ supports [PEP
134134
553](https://www.python.org/dev/peps/pep-0553/) `breakpoint()`
135135
(including `PYTHONBREAKPOINT`). Also supports direct commands via `-c`:
136136

137-
```shell
137+
```console
138138
$ tmuxp shell -c 'print(window.name)'
139139
my_window
140140

@@ -166,7 +166,7 @@ You can also load sessions in the background by passing `-d` flag
166166

167167
Snapshot your tmux layout, pane paths, and window/session names.
168168

169-
```sh
169+
```console
170170
$ tmuxp freeze session-name
171171
```
172172

@@ -177,7 +177,7 @@ tmux](http://tmuxp.git-pull.com/cli.html#freeze-sessions) sessions.
177177

178178
Convert a session file from yaml to json and vice versa.
179179

180-
```sh
180+
```console
181181
$ tmuxp convert filename
182182
```
183183

@@ -186,7 +186,7 @@ going to be written.
186186

187187
You can auto confirm the prompt. In this case no preview will be shown.
188188

189-
```sh
189+
```console
190190
$ tmuxp convert -y filename
191191
$ tmuxp convert --yes filename
192192
```
@@ -201,13 +201,13 @@ the [Plugin System](http://tmuxp.git-pull.com/plugin_system.html).
201201
The `load` command provides a way to log output to a log file for
202202
debugging purposes.
203203

204-
```sh
204+
```console
205205
$ tmuxp load --log-file <log-file-name> .
206206
```
207207

208208
Collect system info to submit with a Github issue:
209209

210-
```sh
210+
```console
211211
$ tmuxp debug-info
212212
------------------
213213
environment:

docs/about_tmux.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ Depending on your tmux version, there is different options available.
449449

450450
### Vi-style copy and paste
451451

452-
```sh
452+
```console
453453
# Vi copypaste mode
454454
set-window-option -g mode-keys vi
455455
bind-key -t vi-copy 'v' begin-selection
@@ -458,15 +458,15 @@ bind-key -t vi-copy 'y' copy-selection
458458

459459
### Aggressive resizing for clients
460460

461-
```sh
461+
```console
462462
setw -g aggressive-resize on
463463
```
464464

465465
### Reload config
466466

467467
`<Prefix>` + `r`.
468468

469-
```sh
469+
```console
470470
bind r source-file ~/.tmux.conf \; display-message "Config reloaded."
471471
```
472472

@@ -479,7 +479,7 @@ You can use [tmux-mem-cpu-load][tmux-mem-cpu-load] to get stats (requires compil
479479
[basic-cpu-and-memory.tmux][basic-cpu-and-memory.tmux]. You can pipe in a bash command to a tmux
480480
status line like:
481481

482-
```sh
482+
```console
483483
$(shell-command)
484484
```
485485

0 commit comments

Comments
 (0)