just-tmux 0.1.2 → 0.1.3
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
- checksums.yaml.gz.sig +0 -0
- data/lib/just-tmux.rb +8 -6
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 549e37a7aa8aa9b759c4d53736c8f7408e90455e
|
|
4
|
+
data.tar.gz: 710b527e9da7158b6fbc932bd6695513b2dcca80
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d3900f49d0c93d1edb6617ec2be95c740e4e94b030993637353cda29f2b400f8f902e18fad3e999bc5801f98c2f670c79521ecf5d43af66e5c7a31912f1b5aa1
|
|
7
|
+
data.tar.gz: 53e4265b3b01781f747c102fc10697874599395cd7bc47bc28b6023067dca33b19683027ef2a03b2ad8e3aa5d5ba6e7fa9c335994d2825d2d4925b36741ea575
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/just-tmux.rb
CHANGED
|
@@ -35,9 +35,11 @@ class JustTmux
|
|
|
35
35
|
x
|
|
36
36
|
end
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
|
|
39
|
+
@to_s = new_session(session_name, h[0][:name], shell,
|
|
40
|
+
"cd #{h[0][:dir]} && " + h[0][:command]) + h[1..-1].map \
|
|
41
|
+
{|x| new_window(x[:name], shell, "cd #{x[:dir]} && " + \
|
|
42
|
+
x[:command]) }.join
|
|
41
43
|
|
|
42
44
|
end
|
|
43
45
|
|
|
@@ -48,10 +50,10 @@ class JustTmux
|
|
|
48
50
|
[window_name, shell, command]
|
|
49
51
|
end
|
|
50
52
|
|
|
51
|
-
def new_session(session_name, window_name, shell,
|
|
53
|
+
def new_session(session_name, window_name, shell, command)
|
|
52
54
|
r = "tmux new-session -d -s %s -n %s '%s'\n" %
|
|
53
55
|
[session_name, shell, window_name]
|
|
54
|
-
r + "tmux send-keys '
|
|
56
|
+
r + "tmux send-keys '%s' Enter\n" % [command]
|
|
55
57
|
end
|
|
56
58
|
|
|
57
|
-
end
|
|
59
|
+
end
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|