Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

C-x C-e to edit current command in $EDITOR #479

Merged
merged 1 commit into from

2 participants

@csexton

Enabled the awesome edit-command-line with standard keybindings

Added C-x C-e to open the editor with the current command. Bash has this by default, and is really a killer feature -- just needs to be enabled in zsh. I put it in lib because I believe it is one of those things that does not get in the way, but is really good to have out of the box. I certainly could make it a plugin, if there are strong opinions about it.

Thanks to Craig Bosma and his blog post about this: http://distrustsimplicity.net/articles/zsh-command-editing

@csexton csexton C-x C-e to edit current command in EDITOR
The command C-x C-e opens the current command line for editing
in the editor defined by the $EDITOR environment variable.

Thanks to Craig Bosma and his blog post about this:
http://distrustsimplicity.net/articles/zsh-command-editing
a38774c
@robbyrussell robbyrussell merged commit d62f29b into robbyrussell:master
@vguerci vguerci referenced this pull request from a commit in vguerci/oh-my-zsh
@sorin-ionescu sorin-ionescu [Fix #479] Start only one ssh-agent instance a4bacb8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 18, 2011
  1. @csexton

    C-x C-e to edit current command in EDITOR

    csexton authored
    The command C-x C-e opens the current command line for editing
    in the editor defined by the $EDITOR environment variable.
    
    Thanks to Craig Bosma and his blog post about this:
    http://distrustsimplicity.net/articles/zsh-command-editing
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/edit-command-line.zsh
View
3  lib/edit-command-line.zsh
@@ -0,0 +1,3 @@
+autoload -U edit-command-line
+zle -N edit-command-line
+bindkey '\C-x\C-e' edit-command-line
Something went wrong with that request. Please try again.