Add command line editing

This commit is contained in:
Andrea Mistrali 2015-10-24 12:24:18 +02:00
parent 2add3fe13e
commit 1d91f4b8e2
1 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,11 @@
autoload -U select-word-style
select-word-style bash
# Command line editing in $EDITOR
autoload -z edit-command-line
zle -N edit-command-line
bindkey "^X^E" edit-command-line
# Standard Linux
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word