tcsh has a run-fg-editor option. it allows this to happen:
% vi file.c
(press ^z in vi)
% make
% (press ^z at shell prompt)
(back in vi)
i know, you cool emacs people can run make in another buffer and call
doctor on the output. yeah, yeah, yeah.
this isn't native in zsh, but in zsh 4.x and some late 3.x's, you can
do this:
run-fg-editor() {
zle push-input
BUFFER="fg %$EDITOR:t"
zle accept-line
}
zle -N run-fg-editor
bindkey '^z' run-fg-editor
btw, you can't just enter this into you .zshrc and expect it to work.
you have to resource your .zshrc or paste in the commands. guess what
i just had to do?
ah, the downside of xterms being open for weeks upon weeks.
kevin
--
kevin at ie.suberic.net dante hicks: but you hate people.
fork()'ed on 37058400 randal graves: yes, but i love gatherings.
meatspace place: home isn't it ironic?
http://ie.suberic.net/~kevin --clerks
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!