From 65c4af271d159754cbe087299b2a99cd2f63ca45 Mon Sep 17 00:00:00 2001 From: staticsafe Date: Mon, 18 Jun 2012 15:26:18 -0400 Subject: [PATCH] adding new binding to bring up $EDITOR for command editing. --- .zsh/bindings.zsh | 1 + .zshrc | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.zsh/bindings.zsh b/.zsh/bindings.zsh index 3e93176..7a2ab73 100644 --- a/.zsh/bindings.zsh +++ b/.zsh/bindings.zsh @@ -3,3 +3,4 @@ bindkey "^K" kill-whole-line # ctrl-k bindkey "^R" history-incremental-search-backward # ctrl-r bindkey "^A" beginning-of-line # ctrl -a bindkey "^E" end-of-line # ctrl-e +bindkey '^x^e' edit-command-line # ctrl-x ctrl-e diff --git a/.zshrc b/.zshrc index e712c17..ad6d250 100644 --- a/.zshrc +++ b/.zshrc @@ -1,6 +1,7 @@ -autoload -U compinit promptinit +autoload -U compinit promptinit edit-command-line compinit promptinit +zle -N edit-command-line #prompt prompt clint