Mercurial > dotfiles
comparison dot_zshrc @ 676:128696498485
enable ctrl-w to erase parts of pathname in zsh
author | zegervdv <zegervdv@me.com> |
---|---|
date | Fri, 30 Sep 2022 07:32:55 +0000 |
parents | 951bf1353641 |
children | 6aabd0b8d766 |
comparison
equal
deleted
inserted
replaced
675:6c07661fbc1f | 676:128696498485 |
---|---|
279 export FZF_DEFAULT_OPTS="--color=fg:#000000,bg:#fbfafc,hl:#0b51a6 \ | 279 export FZF_DEFAULT_OPTS="--color=fg:#000000,bg:#fbfafc,hl:#0b51a6 \ |
280 --color=fg+:#000000,bg+:#dbebff,hl+:#0b51a6 \ | 280 --color=fg+:#000000,bg+:#dbebff,hl+:#0b51a6 \ |
281 --color=info:#4f9fcf,prompt:#d44950,pointer:#d71707 \ | 281 --color=info:#4f9fcf,prompt:#d44950,pointer:#d71707 \ |
282 --color=marker:#d71707,spinner:#4f9fcf,header:#7653c1" | 282 --color=marker:#d71707,spinner:#4f9fcf,header:#7653c1" |
283 | 283 |
284 unix-word-rubout() { | |
285 local WORDCHARS=$'!"#$%&\'()*+,-.:;<=>?@[\\]^_`{|}~' | |
286 zle backward-kill-word | |
287 } | |
288 | |
284 # The plugin will auto execute this zvm_after_init function | 289 # The plugin will auto execute this zvm_after_init function |
285 function zvm_after_init() { | 290 function zvm_after_init() { |
286 [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh | 291 [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh |
287 bindkey '^r' histdb-skim-widget | 292 bindkey '^r' histdb-skim-widget |
288 | 293 |
298 bindkey "$terminfo[kcud1]" history-substring-search-down | 303 bindkey "$terminfo[kcud1]" history-substring-search-down |
299 bindkey '^p' history-substring-search-up | 304 bindkey '^p' history-substring-search-up |
300 bindkey '^n' history-substring-search-down | 305 bindkey '^n' history-substring-search-down |
301 | 306 |
302 bindkey '^f' autosuggest-accept | 307 bindkey '^f' autosuggest-accept |
308 | |
309 zle -N unix-word-rubout | |
310 bindkey '^w' unix-word-rubout | |
303 } | 311 } |
304 | 312 |
305 zsh-defer source ~/.zsh/zsh-vi-mode.zsh | 313 zsh-defer source ~/.zsh/zsh-vi-mode.zsh |
306 | 314 |
307 _zsh_autosuggest_strategy_histdb_top_here() { | 315 _zsh_autosuggest_strategy_histdb_top_here() { |