mirror of
https://github.com/tmux-plugins/tmux-continuum.git
synced 2024-11-22 03:08:48 +00:00
Bugfixes for Terminal.app and iTerm tmux start scripts
This commit is contained in:
parent
2ddf7b9c48
commit
061f024c0a
@ -1,6 +1,7 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
### master
|
### master
|
||||||
|
- bugfixes for 'tmux auto start' OS X Terminal.app and iTerm scripts
|
||||||
|
|
||||||
### v2.1.0, 2015-02-18
|
### v2.1.0, 2015-02-18
|
||||||
- enable "tmux auto start" for OS X
|
- enable "tmux auto start" for OS X
|
||||||
|
@ -42,7 +42,12 @@ resize_window_to_full_screen() {
|
|||||||
resize_to_true_full_screen() {
|
resize_to_true_full_screen() {
|
||||||
osascript <<-EOF
|
osascript <<-EOF
|
||||||
tell application "iTerm"
|
tell application "iTerm"
|
||||||
|
# wait for iTerm to start
|
||||||
delay 1
|
delay 1
|
||||||
|
activate
|
||||||
|
# short wait for iTerm to gain focus
|
||||||
|
delay 0.1
|
||||||
|
# Command + Enter for fullscreen
|
||||||
tell i term application "System Events"
|
tell i term application "System Events"
|
||||||
key code 36 using {command down}
|
key code 36 using {command down}
|
||||||
end tell
|
end tell
|
||||||
|
@ -29,7 +29,11 @@ resize_window_to_full_screen() {
|
|||||||
resize_to_true_full_screen() {
|
resize_to_true_full_screen() {
|
||||||
osascript <<-EOF
|
osascript <<-EOF
|
||||||
tell application "Terminal"
|
tell application "Terminal"
|
||||||
|
# waiting for Terminal.app to start
|
||||||
delay 1
|
delay 1
|
||||||
|
activate
|
||||||
|
# short wait for Terminal to gain focus
|
||||||
|
delay 0.1
|
||||||
tell application "System Events"
|
tell application "System Events"
|
||||||
keystroke "f" using {control down, command down}
|
keystroke "f" using {control down, command down}
|
||||||
end tell
|
end tell
|
||||||
|
Loading…
Reference in New Issue
Block a user