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"