From 897aaa25d795a83be3db4c51e2c724556cd2c191 Mon Sep 17 00:00:00 2001 From: Ivan Date: Tue, 30 Sep 2014 16:11:49 +0200 Subject: [PATCH] fix accessing current terminal use `current terminal` instead of `first terminal` to access current terminal --- lib/iterm_window.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/iterm_window.rb b/lib/iterm_window.rb index 9681fe3..1e15a56 100755 --- a/lib/iterm_window.rb +++ b/lib/iterm_window.rb @@ -157,7 +157,7 @@ class ItermWindow # Initializes the terminal window def run_commands(window_type, &block) - window_types = {:new => '(make new terminal)', :current => 'first terminal'} + window_types = {:new => '(make new terminal)', :current => 'current terminal'} raise ArgumentError, "ItermWindow#run_commands should be passed :new or :current." unless window_types.keys.include? window_type output "tell application 'iTerm'" output "activate"