Mercurial > dotfiles
comparison dot_zshrc @ 569:5579d087173a
Map <c-u> in zsh to kill current line
author | zegervdv <zegervdv@me.com> |
---|---|
date | Wed, 02 Mar 2022 14:30:16 +0100 |
parents | edace2b7e913 |
children | 77280c499124 |
comparison
equal
deleted
inserted
replaced
568:91d89b637bd6 | 569:5579d087173a |
---|---|
248 | 248 |
249 # The plugin will auto execute this zvm_after_init function | 249 # The plugin will auto execute this zvm_after_init function |
250 function zvm_after_init() { | 250 function zvm_after_init() { |
251 [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh | 251 [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh |
252 bindkey '^r' histdb-fzf-widget | 252 bindkey '^r' histdb-fzf-widget |
253 | |
254 # Postpone current command to next prompt | |
253 bindkey '^t' push-line-or-edit | 255 bindkey '^t' push-line-or-edit |
256 | |
257 # Cut current command into killring | |
258 bindkey '^u' backward-kill-line | |
254 | 259 |
255 bindkey '^[[A' history-substring-search-up | 260 bindkey '^[[A' history-substring-search-up |
256 bindkey '^[[B' history-substring-search-down | 261 bindkey '^[[B' history-substring-search-down |
257 bindkey "$terminfo[kcuu1]" history-substring-search-up | 262 bindkey "$terminfo[kcuu1]" history-substring-search-up |
258 bindkey "$terminfo[kcud1]" history-substring-search-down | 263 bindkey "$terminfo[kcud1]" history-substring-search-down |