LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] tcsh's run-fg-editor; how to get it in zsh...

[ILUG] tcsh's run-fg-editor; how to get it in zsh...

kevin lyda kevin+dated+1039573212.82c68a at ie.suberic.net
Fri Dec 6 02:21:03 GMT 2002


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



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell