From ab51679e33ec8c6dae35ea934813c0ed544564e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Re=CC=81mi=20Pre=CC=81vost?= Date: Mon, 5 Mar 2012 14:22:10 -0500 Subject: [PATCH] Set a TEAMOCIL environment variable on all splits --- lib/teamocil/layout/split.rb | 3 +++ 1 file changed, 3 insertions(+) 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}\""