bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: run-fg-editor for bash?


From: Stephane Chazelas
Subject: Re: run-fg-editor for bash?
Date: Thu, 1 Nov 2007 19:35:33 +0000
User-agent: Mutt/1.5.16 (2007-09-19)

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

[Prev in Thread] Current Thread [Next in Thread]