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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 234d71ebf224d775f506108bf06c6098b89db084
4
- data.tar.gz: b7257f9d13d38dd9d82df676bd7acaa3a94cbdfb
3
+ metadata.gz: 549e37a7aa8aa9b759c4d53736c8f7408e90455e
4
+ data.tar.gz: 710b527e9da7158b6fbc932bd6695513b2dcca80
5
5
  SHA512:
6
- metadata.gz: 597b6cd178bc18477a07b42ada8047c36691cfd2bd174917ad759c3a38119d75e7d4414681df14dc885fb4026b9bd1382a61bfafa462dec7419dac8bed2f7898
7
- data.tar.gz: ef90b799bd19fefc874c7c15a91f1025b35b83040de2e55753654a1b6f529ced52f04709de604b900ca95c6181643c6a52bce11ccdc8b4220b728cfdea068341
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
- @to_s = new_session(session_name, h[0][:name], shell, h[0][:dir],
39
- h[0][:command]) + h[1..-1].map {|x| new_window(x[:name],
40
- shell, x[:command]) }.join
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, dir, command)
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 'cd %s && %s' Enter\n" % [dir, command]
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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: just-tmux
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file