[comp.unix.wizards] Emacs csh alias -- better solution than the first posted

maart@cs.vu.nl (Maarten Litmaath) (12/08/87)

alias emacs \
'jobs > /tmp/jobs; grep emacs /tmp/jobs > /dev/null && fg %emacs || emacs'

BTW, long live vi!
-- 
Time flies like an arrow, fruit flies |Maarten Litmaath @ Free U Amsterdam:
like an orange.      (seen elsewhere) |maart@cs.vu.nl, mcvax!botter!ark!maart

maart@cs.vu.nl (Maarten Litmaath) (12/09/87)

Of course the alias had to be:

alias emacs \
'jobs > /tmp/jobs; grep emacs /tmp/jobs > /dev/null && fg %?emacs || /bin/emacs'
                                                           ^         ^^^^^
                                                           !         !!!!!
or

      !!
      vv
alias em \
'jobs > /tmp/jobs; grep emacs /tmp/jobs > /dev/null && fg %emacs || emacs'

Sorry.
-- 
Time flies like an arrow, fruit flies |Maarten Litmaath @ Free U Amsterdam:
like an orange.      (seen elsewhere) |maart@cs.vu.nl, mcvax!botter!ark!maart