mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 21:31:19 +08:00 
			
		
		
		
	Makes history-substring-search use term specific up and down buttons. Fixes #2089.
This commit is contained in:
		
							parent
							
								
									ec37c05cb3
								
							
						
					
					
						commit
						c563fe95fb
					
				@ -163,8 +163,9 @@ function history-substring-search-down() {
 | 
			
		||||
zle -N history-substring-search-up
 | 
			
		||||
zle -N history-substring-search-down
 | 
			
		||||
 | 
			
		||||
bindkey '\e[A' history-substring-search-up
 | 
			
		||||
bindkey '\e[B' history-substring-search-down
 | 
			
		||||
zmodload zsh/terminfo
 | 
			
		||||
bindkey "$terminfo[kcuu1]" history-substring-search-up
 | 
			
		||||
bindkey "$terminfo[kcud1]" history-substring-search-down
 | 
			
		||||
 | 
			
		||||
#-----------------------------------------------------------------------------
 | 
			
		||||
# implementation details
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user