tmuxinator 3.3.8 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/tmuxinator/assets/sample.yml +10 -4
- data/lib/tmuxinator/assets/template.erb +3 -2
- data/lib/tmuxinator/assets/wemux_template.erb +2 -2
- data/lib/tmuxinator/cli.rb +46 -7
- data/lib/tmuxinator/project.rb +13 -2
- data/lib/tmuxinator/tmux_version.rb +4 -0
- data/lib/tmuxinator/version.rb +1 -1
- data/lib/tmuxinator/window.rb +39 -5
- data/spec/fixtures/interface/basic.yml +16 -0
- data/spec/fixtures/interface/pane_titles.yml +11 -0
- data/spec/fixtures/interface/session_name.yml +5 -0
- data/spec/interface/debug_snapshot_spec.rb +73 -0
- data/spec/lib/tmuxinator/cli_spec.rb +117 -16
- data/spec/lib/tmuxinator/config_spec.rb +4 -0
- data/spec/lib/tmuxinator/project_spec.rb +89 -6
- data/spec/lib/tmuxinator/window_spec.rb +102 -6
- data/spec/snapshots/debug/1.6/basic.sh +74 -0
- data/spec/snapshots/debug/1.6/pane_titles.sh +61 -0
- data/spec/snapshots/debug/1.8/basic.sh +72 -0
- data/spec/snapshots/debug/1.8/pane_titles.sh +59 -0
- data/spec/snapshots/debug/2.6/basic.sh +75 -0
- data/spec/snapshots/debug/2.6/pane_titles.sh +60 -0
- data/spec/snapshots/debug/2.6/session_name.sh +53 -0
- metadata +23 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
# Clear rbenv variables before starting tmux
|
|
5
|
+
unset RBENV_VERSION
|
|
6
|
+
unset RBENV_DIR
|
|
7
|
+
|
|
8
|
+
tmux start-server;
|
|
9
|
+
|
|
10
|
+
cd .
|
|
11
|
+
|
|
12
|
+
# Run on_project_start command.
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# Run pre command.
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
# Run on_project_first_start command.
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
tmux new-session -d -s home_arpa_lab -n main
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# Create windows.
|
|
27
|
+
tmux new-window -k -t home_arpa_lab:0 -n main
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# Window "main"
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
tmux send-keys -t home_arpa_lab:0.0 echo\ ok C-m
|
|
35
|
+
|
|
36
|
+
tmux select-layout -t home_arpa_lab:0 tiled
|
|
37
|
+
|
|
38
|
+
tmux select-layout -t home_arpa_lab:0
|
|
39
|
+
tmux select-pane -t home_arpa_lab:0.0
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
tmux select-window -t home_arpa_lab:0
|
|
43
|
+
tmux select-pane -t home_arpa_lab:0.0
|
|
44
|
+
|
|
45
|
+
if [ -z "$TMUX" ]; then
|
|
46
|
+
tmux -u attach-session -t home_arpa_lab
|
|
47
|
+
else
|
|
48
|
+
tmux -u switch-client -t home_arpa_lab
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
# Run on_project_exit command.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tmuxinator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Allen Bargi
|
|
@@ -188,6 +188,9 @@ files:
|
|
|
188
188
|
- spec/fixtures/dot-tmuxinator/dup/local-dup.yml
|
|
189
189
|
- spec/fixtures/dot-tmuxinator/home.yml
|
|
190
190
|
- spec/fixtures/dot-tmuxinator/local-dup.yml
|
|
191
|
+
- spec/fixtures/interface/basic.yml
|
|
192
|
+
- spec/fixtures/interface/pane_titles.yml
|
|
193
|
+
- spec/fixtures/interface/session_name.yml
|
|
191
194
|
- spec/fixtures/nameless_window.yml
|
|
192
195
|
- spec/fixtures/noname.yml
|
|
193
196
|
- spec/fixtures/noroot.yml
|
|
@@ -203,6 +206,7 @@ files:
|
|
|
203
206
|
- spec/fixtures/xdg-tmuxinator/both.yml
|
|
204
207
|
- spec/fixtures/xdg-tmuxinator/xdg.yml
|
|
205
208
|
- spec/fixtures/yaml.yaml
|
|
209
|
+
- spec/interface/debug_snapshot_spec.rb
|
|
206
210
|
- spec/lib/tmuxinator/cli_spec.rb
|
|
207
211
|
- spec/lib/tmuxinator/config_spec.rb
|
|
208
212
|
- spec/lib/tmuxinator/doctor_spec.rb
|
|
@@ -214,6 +218,13 @@ files:
|
|
|
214
218
|
- spec/lib/tmuxinator/wemux_support_spec.rb
|
|
215
219
|
- spec/lib/tmuxinator/window_spec.rb
|
|
216
220
|
- spec/matchers/pane_matcher.rb
|
|
221
|
+
- spec/snapshots/debug/1.6/basic.sh
|
|
222
|
+
- spec/snapshots/debug/1.6/pane_titles.sh
|
|
223
|
+
- spec/snapshots/debug/1.8/basic.sh
|
|
224
|
+
- spec/snapshots/debug/1.8/pane_titles.sh
|
|
225
|
+
- spec/snapshots/debug/2.6/basic.sh
|
|
226
|
+
- spec/snapshots/debug/2.6/pane_titles.sh
|
|
227
|
+
- spec/snapshots/debug/2.6/session_name.sh
|
|
217
228
|
- spec/spec_helper.rb
|
|
218
229
|
homepage: https://github.com/tmuxinator/tmuxinator
|
|
219
230
|
licenses:
|
|
@@ -250,6 +261,9 @@ test_files:
|
|
|
250
261
|
- spec/fixtures/dot-tmuxinator/dup/local-dup.yml
|
|
251
262
|
- spec/fixtures/dot-tmuxinator/home.yml
|
|
252
263
|
- spec/fixtures/dot-tmuxinator/local-dup.yml
|
|
264
|
+
- spec/fixtures/interface/basic.yml
|
|
265
|
+
- spec/fixtures/interface/pane_titles.yml
|
|
266
|
+
- spec/fixtures/interface/session_name.yml
|
|
253
267
|
- spec/fixtures/nameless_window.yml
|
|
254
268
|
- spec/fixtures/noname.yml
|
|
255
269
|
- spec/fixtures/noroot.yml
|
|
@@ -265,6 +279,7 @@ test_files:
|
|
|
265
279
|
- spec/fixtures/xdg-tmuxinator/both.yml
|
|
266
280
|
- spec/fixtures/xdg-tmuxinator/xdg.yml
|
|
267
281
|
- spec/fixtures/yaml.yaml
|
|
282
|
+
- spec/interface/debug_snapshot_spec.rb
|
|
268
283
|
- spec/lib/tmuxinator/cli_spec.rb
|
|
269
284
|
- spec/lib/tmuxinator/config_spec.rb
|
|
270
285
|
- spec/lib/tmuxinator/doctor_spec.rb
|
|
@@ -276,4 +291,11 @@ test_files:
|
|
|
276
291
|
- spec/lib/tmuxinator/wemux_support_spec.rb
|
|
277
292
|
- spec/lib/tmuxinator/window_spec.rb
|
|
278
293
|
- spec/matchers/pane_matcher.rb
|
|
294
|
+
- spec/snapshots/debug/1.6/basic.sh
|
|
295
|
+
- spec/snapshots/debug/1.6/pane_titles.sh
|
|
296
|
+
- spec/snapshots/debug/1.8/basic.sh
|
|
297
|
+
- spec/snapshots/debug/1.8/pane_titles.sh
|
|
298
|
+
- spec/snapshots/debug/2.6/basic.sh
|
|
299
|
+
- spec/snapshots/debug/2.6/pane_titles.sh
|
|
300
|
+
- spec/snapshots/debug/2.6/session_name.sh
|
|
279
301
|
- spec/spec_helper.rb
|