@@ -30,40 +30,56 @@ Install ``tmuxp``:
30
30
$ pip install tmuxp
31
31
32
32
33
- See also: `Quickstart `_
34
-
33
+ See: `Quickstart `_
35
34
36
35
tmux bash completion
37
36
""""""""""""""""""""
38
37
38
+ tmuxp uses ``switch-client `` for you if already in a TMUX client.
39
+
39
40
.. code-block :: bash
40
41
41
- # tmuxp uses ``switch-client`` for you if already in a TMUX client.
42
- $ tmuxp attach-session< tab>
43
- $ tmuxp kill-session< tab>
42
+ $ tmuxp attach-session< tab> # current sessions
43
+ $ tmuxp kill-session< tab> # current sessions
44
+
45
+ Load a session configuration from a YAML or JSON file.
46
+
47
+ .. code-block :: bash
44
48
45
- # load a session configuration from a YAML or JSON file.
46
49
$ tmuxp load< tab>
47
50
48
51
See: `bash completion `_
49
52
50
53
load tmux sessions from yaml and json
51
54
"""""""""""""""""""""""""""""""""""""
52
55
56
+ Load from ``~/.tmuxp.yaml `` or ``~/.tmuxp.json `` in current directory.
57
+
53
58
.. code-block :: bash
54
59
55
- # Load from ``~/.tmuxp.yaml`` or ``~/.tmuxp.json`` in current directory.
56
60
$ tmuxp load .
57
61
58
- # Load ``myconfig.yaml``, checking current directory, then
59
- # ``$HOME/.tmuxp/myconfig.yaml``.
62
+ Load ``myconfig.yaml ``.
63
+
64
+ .. code-block :: bash
65
+
60
66
$ tmuxp load myconfig.yaml
61
67
62
- tmuxp will prompt you if session is already running, press ``[Enter] ``
63
- to attach the session automatically.
68
+ ``$ mkdir ~/.tmuxp `` and make a file ``~/.tmuxp/test.yaml ``.
69
+
70
+ .. code-block :: yaml
71
+
72
+ session_name : my session
73
+ windows :
74
+ - window_name : my test window
75
+ shell_command_before : cd ~
76
+ panes :
77
+ - pwd
78
+ - pwd
79
+
80
+ .. code-block :: bash
64
81
65
- If you load a config from *inside * tmux, tmuxp will offer to attach it
66
- for you.
82
+ $ tmuxp load test.yaml
67
83
68
84
See: `Examples `_
69
85
0 commit comments