Last active
August 29, 2015 14:15
-
-
Save Porta/14adfec1d822a2520c27 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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