mirror of
				https://github.com/tmux-plugins/tmux-resurrect.git
				synced 2025-11-04 00:46:04 +00:00 
			
		
		
		
	only add -l when default_shell is bash
This commit is contained in:
		
				
					committed by
					
						
						Bruno Sutic
					
				
			
			
				
	
			
			
			
						parent
						
							c66b791fff
						
					
				
				
					commit
					1160c1da71
				
			@@ -100,7 +100,11 @@ tmux_socket() {
 | 
				
			|||||||
# tmux server each time.
 | 
					# tmux server each time.
 | 
				
			||||||
cache_tmux_default_command() {
 | 
					cache_tmux_default_command() {
 | 
				
			||||||
	local default_shell="$(get_tmux_option "default-shell" "")"
 | 
						local default_shell="$(get_tmux_option "default-shell" "")"
 | 
				
			||||||
	export TMUX_DEFAULT_COMMAND="$(get_tmux_option "default-command" "-l $default_shell")"
 | 
						local opt=""
 | 
				
			||||||
 | 
						if [ "$(basename "$default_shell")" == "bash" ]; then
 | 
				
			||||||
 | 
							opt="-l "
 | 
				
			||||||
 | 
						fi
 | 
				
			||||||
 | 
						export TMUX_DEFAULT_COMMAND="$(get_tmux_option "default-command" "$opt$default_shell")"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
tmux_default_command() {
 | 
					tmux_default_command() {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user