Add Control+A and Control+E shortcuts

Add Control+A and Control+E shortcuts for beginning of line and end of line.
This commit is contained in:
Máté Hajzsó 2017-09-29 14:38:24 +01:00 committed by GitHub
parent a4f6b757be
commit 50db2a9049
1 changed files with 3 additions and 0 deletions

View File

@ -61,6 +61,9 @@ if [[ -n "${key_info[End]}" ]]; then
bindkey "${key_info[End]}" end-of-line
fi
bindkey "${key_info[Control]}A" beginning-of-line
bindkey "${key_info[Control]}E" end-of-line
if [[ -n "${key_info[PageUp]}" ]]; then
bindkey "${key_info[PageUp]}" up-line-or-history
fi