tcsh completion (Make and files)
Hi,
I had a wonderful completion under Suse-Linux that completed 'make' with the goals from the Makefile in the directory. I found two complete lines that are supposed to do this:
complete make 'p@*@`sed -n "/^[^.#^I;][^:;='\\']*:/s/:.*//p" [Mm]akefile`@'
complete make \
'n/-f/f/' \
'c/*=/f/' \
'n@*@`cat -s GNUmakefile Makefile makefile |& sed -n -e "/No such file/d" -e "/^[^ #].*:/s/:.*//p"`@'
Both do not work. The first produces:
make `sed -n "/^[^.#^I;][^:;=\]*:/s/:.*//p" [Mm]akefile`: No match.
when I press TAB after make
The second produces:
| make `cat -s GNUmakefile Makefile makefile |& sed -n -e "/No such file/d" -e "/^[^ | #].*:/s/:.*//p"`: No match. |
What can I do?
IN addition, I am used to completion where ambiguous filenames cause a list of options when completion is attempted. On Mac OS, I am just stuck and have to interrupt the program and do an ls to find out what is there. Any ideas how to fix this?
Thansk!
Best
Stefan