Skip to content

Commit 9a4309e

Browse files
author
Bruno Sutic
committed
Do not set aggressive-resize on iterm terminal
Related #24
1 parent 2fe5834 commit 9a4309e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
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

sensible.tmux

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ is_osx() {
1010
[ "$platform" == "Darwin" ]
1111
}
1212

13+
iterm_terminal() {
14+
[[ "$TERM_PROGRAM" =~ ^iTerm ]]
15+
}
16+
1317
command_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

0 commit comments

Comments
 (0)