File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
33### master
4+ - do not set ` aggressive-resize ` on iTerm terminal
45
56### v3.0.0, 2015-06-24
67- remove 'almost sensible' feature
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ is_osx() {
1010 [ " $platform " == " Darwin" ]
1111}
1212
13+ iterm_terminal () {
14+ [[ " $TERM_PROGRAM " =~ ^iTerm ]]
15+ }
16+
1317command_exists () {
1418 local command=" $1 "
1519 type " $command " > /dev/null 2>&1
@@ -111,7 +115,9 @@ main() {
111115 tmux set-option -g focus-events on
112116
113117 # super useful when using "grouped sessions" and multi-monitor setup
114- tmux set-window-option -g aggressive-resize on
118+ if ! iterm_terminal; then
119+ tmux set-window-option -g aggressive-resize on
120+ fi
115121
116122 # DEFAULT KEY BINDINGS
117123
You can’t perform that action at this time.
0 commit comments