Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Output less text when creating a split

  • Loading branch information...
commit b7273113bef8d0ae0f061f5ae17305ba1c9e27d3 1 parent 70c9a8c
@remiprev authored
Showing with 3 additions and 5 deletions.
  1. +1 −1  lib/teamocil.rb
  2. +2 −4 lib/teamocil/layout/split.rb
View
2  lib/teamocil.rb
@@ -1,5 +1,5 @@
module Teamocil
- VERSION = "0.3.3"
+ VERSION = "0.3.4"
autoload :Layout, "teamocil/layout"
autoload :CLI, "teamocil/cli"
end
View
6 lib/teamocil/layout/split.rb
@@ -50,10 +50,8 @@ def generate_commands # {{{
@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 # }}}
Please sign in to comment.
Something went wrong with that request. Please try again.