Set a TEAMOCIL environment variable on all splits
This commit is contained in:
parent
22e4bc1d43
commit
ab51679e33
@ -46,6 +46,9 @@ module Teamocil
|
|||||||
# If a `root` key exist, start each split in this directory
|
# If a `root` key exist, start each split in this directory
|
||||||
@cmd.unshift "cd \"#{@window.root}\"" unless @window.root.nil?
|
@cmd.unshift "cd \"#{@window.root}\"" unless @window.root.nil?
|
||||||
|
|
||||||
|
# Set the TEAMOCIL environment variable
|
||||||
|
@cmd.unshift "export TEAMOCIL=1"
|
||||||
|
|
||||||
# Execute each split command
|
# Execute each split command
|
||||||
@cmd.flatten.compact.each do |command|
|
@cmd.flatten.compact.each do |command|
|
||||||
commands << "tmux send-keys -t #{@index} \"#{command}\""
|
commands << "tmux send-keys -t #{@index} \"#{command}\""
|
||||||
|
Loading…
Reference in New Issue
Block a user