Bugfixes for Terminal.app and iTerm tmux start scripts

pull/7/head
Bruno Sutic 2015-02-19 13:43:41 +01:00
parent 2ddf7b9c48
commit 061f024c0a
No known key found for this signature in database
GPG Key ID: 66D96E4F2F7EF26C
3 changed files with 10 additions and 0 deletions

View File

@ -1,6 +1,7 @@
# Changelog
### master
- bugfixes for 'tmux auto start' OS X Terminal.app and iTerm scripts
### v2.1.0, 2015-02-18
- enable "tmux auto start" for OS X

View File

@ -42,7 +42,12 @@ resize_window_to_full_screen() {
resize_to_true_full_screen() {
osascript <<-EOF
tell application "iTerm"
# wait for iTerm to start
delay 1
activate
# short wait for iTerm to gain focus
delay 0.1
# Command + Enter for fullscreen
tell i term application "System Events"
key code 36 using {command down}
end tell

View File

@ -29,7 +29,11 @@ resize_window_to_full_screen() {
resize_to_true_full_screen() {
osascript <<-EOF
tell application "Terminal"
# waiting for Terminal.app to start
delay 1
activate
# short wait for Terminal to gain focus
delay 0.1
tell application "System Events"
keystroke "f" using {control down, command down}
end tell