zsh: hisory serach prefix
This commit is contained in:
parent
0c2b717855
commit
150433be29
1 changed files with 3 additions and 0 deletions
|
|
@ -32,6 +32,9 @@
|
||||||
# Expand !! and !$ on space (Fish-style)
|
# Expand !! and !$ on space (Fish-style)
|
||||||
bindkey ' ' magic-space
|
bindkey ' ' magic-space
|
||||||
setopt HIST_VERIFY
|
setopt HIST_VERIFY
|
||||||
|
# History prefix search with up/down arrows
|
||||||
|
bindkey "^[[A" history-search-backward
|
||||||
|
bindkey "^[[B" history-search-forward
|
||||||
# Fish-style Ctrl+Backspace: delete one path segment at a time
|
# Fish-style Ctrl+Backspace: delete one path segment at a time
|
||||||
function backward-kill-path-component() {
|
function backward-kill-path-component() {
|
||||||
if [[ "$LBUFFER" == */ ]]; then
|
if [[ "$LBUFFER" == */ ]]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue