@@ -22,22 +22,22 @@ In zsh (``~/.zshrc``):
2222
2323 eval " $( _TMUXP_COMPLETE=source_zsh tmuxp) "
2424
25- .. _ cli_cli :
25+ .. _ cli_shell :
2626
27- tmux CLI
28- --------
27+ Shell
28+ -----
2929
3030::
3131
32- tmuxp cli
32+ tmuxp shell
3333
34- tmuxp cli <session_name>
34+ tmuxp shell <session_name>
3535
36- tmuxp cli <session_name> <window_name>
36+ tmuxp shell <session_name> <window_name>
3737
38- tmuxp cli -c 'python code'
38+ tmuxp shell -c 'python code'
3939
40- Launch into a `libtmux `_ session .
40+ Launch into a python console with `libtmux `_ objects. Compare to django's shell .
4141
4242Automatically will picked the current tmux :class: `server <libtmux.Server> `,
4343:class: `session <libtmux.Session> `, and :class: `window <libtmux.Window> ` you
@@ -65,26 +65,26 @@ compatible debuggers, for instance `ipdb`_:
6565.. code-block :: sh
6666
6767 $ pip install ipdb
68- $ env PYTHONBREAKPOINT=ipdb.set_trace tmuxp cli
68+ $ env PYTHONBREAKPOINT=ipdb.set_trace tmuxp shell
6969
7070 You can also pass in python code directly, similar to ``python -c ``, do
7171this via ``tmuxp -c ``:
7272
7373.. code-block :: shell
7474
75- $ tmuxp cli -c ' print(session.name); print(window.name)'
75+ $ tmuxp shell -c ' print(session.name); print(window.name)'
7676 my_server
7777 my_window
7878
79- $ tmuxp cli my_server -c ' print(session.name); print(window.name)'
79+ $ tmuxp shell my_server -c ' print(session.name); print(window.name)'
8080 my_server
8181 my_window
8282
83- $ tmuxp cli my_server my_window -c ' print(session.name); print(window.name)'
83+ $ tmuxp shell my_server my_window -c ' print(session.name); print(window.name)'
8484 my_server
8585 my_window
8686
87- $ tmuxp cli my_server my_window -c ' print(window.name.upper())'
87+ $ tmuxp shell my_server my_window -c ' print(window.name.upper())'
8888 MY_WINDOW
8989
9090 .. _PEP 553 : https://www.python.org/dev/peps/pep-0553/
0 commit comments