mirror of
				https://github.com/ItsDrike/dotfiles.git
				synced 2025-11-04 01:16:35 +00:00 
			
		
		
		
	Fix keybinds
This commit is contained in:
		
							parent
							
								
									c1af932797
								
							
						
					
					
						commit
						18ba4c4906
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
#!/usr/bin/env zsh
 | 
					#!/usr/bin/env zsh
 | 
				
			||||||
# shellcheck disable=SC2030,SC2031
 | 
					# shellcheck disable=SC2030,SC2031,SC2015
 | 
				
			||||||
# Set default keybindings (mostly from oh-my-zsh)
 | 
					# Set default keybindings (mostly from oh-my-zsh)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Make sure that the terminal is in application mode when zle is active, since
 | 
					# Make sure that the terminal is in application mode when zle is active, since
 | 
				
			||||||
| 
						 | 
					@ -32,9 +32,9 @@ if [ -n "${terminfo[kcud1]}" ]; then
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# [Home] - Go to beginning of line
 | 
					# [Home] - Go to beginning of line
 | 
				
			||||||
([ -n "${terminfo[khome]}" ] && bindkey "${terminfo[khome]}" beginning-of-line) || bindkey "^[[H" beginning-of-line
 | 
					[ -n "${terminfo[khome]}" ] && bindkey "${terminfo[khome]}" beginning-of-line || bindkey "^[[H" beginning-of-line
 | 
				
			||||||
# [End] - Go to end of line
 | 
					# [End] - Go to end of line
 | 
				
			||||||
([ -n "${terminfo[kend]}" ] && bindkey "${terminfo[kend]}"  end-of-line) || bindkey "^[[F"  end-of-line
 | 
					[ -n "${terminfo[kend]}" ] && bindkey "${terminfo[kend]}"  end-of-line || bindkey "^[[F"  end-of-line
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# [Shift-Tab] - move through the completion menu backwards
 | 
					# [Shift-Tab] - move through the completion menu backwards
 | 
				
			||||||
[ -n "${terminfo[kcbt]}" ] && bindkey "${terminfo[kcbt]}" reverse-menu-complete
 | 
					[ -n "${terminfo[kcbt]}" ] && bindkey "${terminfo[kcbt]}" reverse-menu-complete
 | 
				
			||||||
| 
						 | 
					@ -42,7 +42,7 @@ fi
 | 
				
			||||||
# [Backspace] - delete backward
 | 
					# [Backspace] - delete backward
 | 
				
			||||||
bindkey '^?' backward-delete-char
 | 
					bindkey '^?' backward-delete-char
 | 
				
			||||||
# [Delete] - delete forward
 | 
					# [Delete] - delete forward
 | 
				
			||||||
([ -n "${terminfo[kdch1]}" ] && bindkey "${terminfo[kdch1]}" delete-char) || bindkey "^[[3~" delete-char
 | 
					[ -n "${terminfo[kdch1]}" ] && bindkey "${terminfo[kdch1]}" delete-char || bindkey "^[[3~" delete-char
 | 
				
			||||||
# [Ctrl-Delete] - delete whole forward-word
 | 
					# [Ctrl-Delete] - delete whole forward-word
 | 
				
			||||||
bindkey '^[[3;5~' kill-word
 | 
					bindkey '^[[3;5~' kill-word
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue