File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -24,21 +24,21 @@ Python 2.x will be deprecated in libtmux 0.9. The backports branch is
2424
2525# install
2626
27- ``` sh
27+ ``` console
2828$ pip install --user libtmux
2929```
3030
3131# open a tmux session
3232
3333session name ` foo ` , window name ` bar `
3434
35- ``` sh
35+ ``` console
3636$ tmux new-session -s foo -n bar
3737```
3838
3939# pilot your tmux session via python
4040
41- ``` sh
41+ ``` console
4242$ python
4343
4444# or for nice autocomplete and syntax highlighting
Original file line number Diff line number Diff line change 1717
1818terminal two, ` python ` or ` ptpython ` if you have it:
1919
20- ``` {code-block} sh
20+ ``` console
2121
2222$ python
2323
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ from inside a live tmux session.
2525
2626Next, ensure ` libtmux ` is installed:
2727
28- ``` {code-block} bash
28+ ``` console
2929
3030$ pip install --user libtmux
3131
@@ -35,7 +35,7 @@ $ pip install --user libtmux
3535
3636Now, let's open a tmux session.
3737
38- ``` {code-block} bash
38+ ``` console
3939
4040$ tmux new-session -n bar -s foo
4141
@@ -59,15 +59,15 @@ Session name `-s`: `foo`
5959
6060```
6161
62- ``` {code-block} bash
62+ ``` console
6363
6464$ python
6565
6666```
6767
6868For commandline completion, you can also use [ ptpython] .
6969
70- ``` {code-block} bash
70+ ``` console
7171
7272$ pip install --user ptpython
7373$ ptpython
You can’t perform that action at this time.
0 commit comments