mirror of
				https://github.com/tmux-plugins/tmux-sensible.git
				synced 2025-11-04 00:16:03 +00:00 
			
		
		
		
	@@ -1,6 +1,7 @@
 | 
				
			|||||||
# Changelog
 | 
					# Changelog
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### master
 | 
					### master
 | 
				
			||||||
 | 
					- do not set `aggressive-resize` on iTerm terminal
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### v3.0.0, 2015-06-24
 | 
					### v3.0.0, 2015-06-24
 | 
				
			||||||
- remove 'almost sensible' feature
 | 
					- remove 'almost sensible' feature
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -10,6 +10,10 @@ is_osx() {
 | 
				
			|||||||
	[ "$platform" == "Darwin" ]
 | 
						[ "$platform" == "Darwin" ]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					iterm_terminal() {
 | 
				
			||||||
 | 
						[[ "$TERM_PROGRAM" =~ ^iTerm ]]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
command_exists() {
 | 
					command_exists() {
 | 
				
			||||||
	local command="$1"
 | 
						local command="$1"
 | 
				
			||||||
	type "$command" >/dev/null 2>&1
 | 
						type "$command" >/dev/null 2>&1
 | 
				
			||||||
@@ -111,7 +115,9 @@ main() {
 | 
				
			|||||||
	tmux set-option -g focus-events on
 | 
						tmux set-option -g focus-events on
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	# super useful when using "grouped sessions" and multi-monitor setup
 | 
						# super useful when using "grouped sessions" and multi-monitor setup
 | 
				
			||||||
	tmux set-window-option -g aggressive-resize on
 | 
						if ! iterm_terminal; then
 | 
				
			||||||
 | 
							tmux set-window-option -g aggressive-resize on
 | 
				
			||||||
 | 
						fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	# DEFAULT KEY BINDINGS
 | 
						# DEFAULT KEY BINDINGS
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user