lib/teamocil/layout/split.rb in teamocil-0.3.3 vs lib/teamocil/layout/split.rb in teamocil-0.3.4
- old
+ new
@@ -48,13 +48,11 @@
# Set the TEAMOCIL environment variable
@cmd.unshift "export TEAMOCIL=1"
# Execute each split command
- @cmd.flatten.compact.each do |command|
- commands << "tmux send-keys -t #{@index} \"#{command}\""
- commands << "tmux send-keys -t #{@index} Enter"
- end
+ commands << "tmux send-keys -t #{@index} \"#{@cmd.flatten.compact.join(" && ")}\""
+ commands << "tmux send-keys -t #{@index} Enter"
commands
end # }}}
end