Fix set_xterm_title function in prompt for iTerm2
This commit is contained in:
		
							parent
							
								
									67339be8b9
								
							
						
					
					
						commit
						2cbe3d7b00
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -95,7 +95,9 @@ function set_prompt_info
 | 
			
		|||
function set_xterm_title
 | 
			
		||||
{
 | 
			
		||||
    # Set xterm and screen titles
 | 
			
		||||
    [[ -n "$DISPLAY" ]] && print -Pn "\e]2;%n@%m\a"
 | 
			
		||||
    if [[ -n "$DISPLAY" || -n "$TERM_PROGRAM" ]]; then
 | 
			
		||||
        print -Pn "\e]2;%n@%m\a"
 | 
			
		||||
    fi
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue