Skip to content

Commit 3e4bc35

Browse files
authored
Merge pull request #112 from yevgenykuz/iterm-syntax-errors
Fix syntax errors in auto-start osx iterm script
2 parents 26afaff + fa60087 commit 3e4bc35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/handle_tmux_automatic_start/osx_iterm_start_tmux.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ start_iterm_and_run_tmux() {
1010
1111
# open iterm window
1212
try
13-
set _session to current session of current terminal
13+
set _session to current session of current window
1414
on error
1515
set _term to (make new terminal)
1616
tell _term
@@ -31,7 +31,7 @@ resize_window_to_full_screen() {
3131
osascript <<-EOF
3232
tell application "iTerm"
3333
set winID to id of window 1
34-
tell i term application "Finder"
34+
tell application "Finder"
3535
set desktopSize to bounds of window of desktop
3636
end tell
3737
set bounds of window id winID to desktopSize
@@ -48,7 +48,7 @@ resize_to_true_full_screen() {
4848
# short wait for iTerm to gain focus
4949
delay 0.1
5050
# Command + Enter for fullscreen
51-
tell i term application "System Events"
51+
tell application "System Events"
5252
key code 36 using {command down}
5353
end tell
5454
end tell

0 commit comments

Comments
 (0)