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

Posted on Oct 19, 2012 8:53 AM

Reply
4 replies

Oct 19, 2012 9:03 AM in response to stmue

As far as the filename completion is concerned, In a Terminal window running the C-Shell I can start typing a filename (as many letters as I want) and then press the the <Esc> key to complete. I'm not sure if this works under other shells. Also, if there are more than one filename with the typed letters, the shell beeps but does not show a list of possibilities. I suppose you can write a Perl script to do what you want though.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

tcsh completion (Make and files)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.