On Thu, Nov 01, 2007 at 07:48:13AM -0700, Dan Nicolaescu wrote:
> 
> In tcsh the command run-fg-editor bound by default to C-M-z is
> extremely useful when you have an editor suspended. 
> It makes it very easy to return to the editor, do some editing, then
> suspend the editor again, and the command line is restored in exactly
> the same state as it was before doing C-M-z. 
> 
> It would be great if bash also supported this feature.

I don't know about bash, but with zsh (sorry for the off-topic),
you'd do:

zle-fg() {fg || true}
zle -N zle-fg
bindkey '\M-\C-z' zle-fg

zsh is probably a more obvious choice if you want to transition
from tcsh to a Bourne like shell.

-- 
Stéphane


Reply via email to