diff options
author | Randy Hancock <rhancock@genome.wustl.edu> | 2011-08-01 10:10:42 -0500 |
---|---|---|
committer | Randy Hancock <rhancock@genome.wustl.edu> | 2011-08-01 13:06:52 -0500 |
commit | f20cfc68e81be754521672541fd6ff25983f402c (patch) | |
tree | 283d80a5e90d0e2137781ea5ba1b4fcefe37c496 /lib/key-bindings.zsh | |
parent | dee8171fa9494d1aa6c01cb86de1b70b480ee5c4 (diff) | |
download | zsh-f20cfc68e81be754521672541fd6ff25983f402c.tar.gz zsh-f20cfc68e81be754521672541fd6ff25983f402c.tar.bz2 zsh-f20cfc68e81be754521672541fd6ff25983f402c.zip |
Fix edit-command-line binding
This binding doesn't work when the edit-command-line.zsh file is loaded
after the key-bindings.zsh file because 'bindkey -e' in key-bindings.zsh
resets the binding. Moving the bindings to they key-bindings.zsh file
and removing edit-command-line.zsh.
Diffstat (limited to 'lib/key-bindings.zsh')
-rw-r--r-- | lib/key-bindings.zsh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/key-bindings.zsh b/lib/key-bindings.zsh index 9c2dda35a..d9611b557 100644 --- a/lib/key-bindings.zsh +++ b/lib/key-bindings.zsh @@ -26,6 +26,11 @@ bindkey "^[[3~" delete-char bindkey "^[3;5~" delete-char bindkey "\e[3~" delete-char +# Edit the current command line in $EDITOR +autoload -U edit-command-line +zle -N edit-command-line +bindkey '\C-x\C-e' edit-command-line + # consider emacs keybindings: #bindkey -e ## emacs key bindings |