teamocil/bin/teamocil
2011-02-05 13:54:34 -05:00

11 lines
273 B
Ruby
Executable File

#!/usr/bin/env ruby
require File.dirname(__FILE__)+"/../lib/teamocil"
if ENV["TMUX"] == nil
puts "You must be in a tmux session to use teamocil"
else
layout = Teamocil::Layout.new(ARGV[0], File.join("#{ENV["HOME"]}/.teamocil", "#{ARGV[0]}.yml"))
layout.to_tmux
end