Skip to content

Instantly share code, notes, and snippets.

@Porta
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Porta/14adfec1d822a2520c27 to your computer and use it in GitHub Desktop.
Save Porta/14adfec1d822a2520c27 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'tmuxinator'
project = Tmuxinator::Config.validate(ARGV[0])
layout = ""
project.windows.each do |window|
window.panes.each do |pane|
pane.commands.each do |command|
layout << "#{window.name} #{pane.index + 1} #{pane.commands[0]}\n"
end
end
end
puts layout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment