diff --git a/lib/teamocil/layout/split.rb b/lib/teamocil/layout/split.rb index be65f9f..18d4167 100644 --- a/lib/teamocil/layout/split.rb +++ b/lib/teamocil/layout/split.rb @@ -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}\""