mirror of
				https://github.com/dcarrillo/prezto.git
				synced 2025-11-04 05:09:09 +00:00 
			
		
		
		
	Do not set Terminal.app window, tab titles to $PWD
This commit is contained in:
		@@ -82,13 +82,13 @@ function set-title-precmd {
 | 
			
		||||
    if [[ "$TERM_PROGRAM" == 'Apple_Terminal' ]]; then
 | 
			
		||||
      # Set the current working directory in Apple Terminal.
 | 
			
		||||
      printf '\e]7;%s\a' "file://$HOST${PWD// /%20}"
 | 
			
		||||
    else
 | 
			
		||||
      set-window-title "${(%):-%~}"
 | 
			
		||||
      for kind in tab screen; do
 | 
			
		||||
        # Left-truncate the current working directory to 15 characters.
 | 
			
		||||
        set-${kind}-title "${(%):-%15<...<%~%<<}"
 | 
			
		||||
      done
 | 
			
		||||
    fi
 | 
			
		||||
 | 
			
		||||
    set-window-title "${(%):-%~}"
 | 
			
		||||
    for kind in tab screen; do
 | 
			
		||||
      # Left-truncate the current working directory to 15 characters.
 | 
			
		||||
      set-${kind}-title "${(%):-%15<...<%~%<<}"
 | 
			
		||||
    done
 | 
			
		||||
  fi
 | 
			
		||||
}
 | 
			
		||||
add-zsh-hook precmd set-title-precmd
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user