Add navigation through the history with up and down arrows

pull/1/head
Carlos Gomes 2021-11-13 01:33:45 +01:00
rodzic 1fb8b4480e
commit e3dede34ca
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 870909DFEF7C5FB9
1 zmienionych plików z 9 dodań i 0 usunięć

9
zshrc
Wyświetl plik

@ -29,3 +29,12 @@ extract () {
echo "'$1' is not a valid file!"
fi
}
# Cycle through history based on characters already typed on the line
autoload -U up-line-or-beginning-search
autoload -U down-line-or-beginning-search
zle -N up-line-or-beginning-search
zle -N down-line-or-beginning-search
bindkey "$key[Up]" up-line-or-beginning-search
bindkey "$key[Down]" down-line-or-beginning-search