Set a TEAMOCIL environment variable on all splits

This commit is contained in:
Rémi Prévost 2012-03-05 14:22:10 -05:00
parent 22e4bc1d43
commit ab51679e33

View File

@ -46,6 +46,9 @@ module Teamocil
# If a `root` key exist, start each split in this directory
@cmd.unshift "cd \"#{@window.root}\"" unless @window.root.nil?
# 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}\""