Just Another Geek!/ blog/ posts/ Binding zsh

Voici quelques raccourcis sympa pour zsh :

% bindkey '^F' history-beginning-search-backward

history-beginning-search-backward
     Search backward in the history for a line beginning with the
     current line up to the cursor.  This leaves the cursor in its
     original position.

% bindkey '\ek' backward-kill-line

backward-kill-line
     Kill from the beginning of the line to the cursor position.

% bindkey '\eq' push-input

push-input
     Push the entire current multiline construct onto the buffer stack
     and return to the top-level (PS1) prompt.  If the current parser
     construct is only a single line, this is exactly like push-line.
     Next time the editor starts up or is popped with get-line, the
     construct will be popped off the top of the buffer stack and loaded
     into the editing buffer.

Le raccourci M-? par défaut :

which-command (ESC-?) (unbound) (unbound)
     Push the buffer onto the buffer stack, and execute the command
     `which-command CMD'. where CMD is the current command.
     which-command is normally aliased to WHENCE.

A ce sujet, ma configuration zsh est toujours disponible sur http://mouarf.org/config/zsh/zshrc.