It is currently Tue, 07 Dec 2021 03:11:30 GMT



 
Author Message
 tcsh - complete command
Hello tcsh-experts,

I have just discovered the nice command "complete". When I write

                  complete vi 'n/*/f:*.{tex,ps}/'

the shell only expands files with the suffix .tex or .ps .

But I want to give a priority list of file name suffixes like
   (1) .tex
   (2) .ps
   (3)  <anything else>
with the meaning: if there is a file with the suffix .tex and another
file with the suffix .ps then take .tex . If there is no file with the
suffix .tex but some with the suffix .ps then take the one with .ps .
If there are no files with the suffix .tex or .ps then use `normal'
completion.

I have read the man page but I found no hint to solve my problem.

Any suggestions?

Thanks
      Adam   (a...@informatik.rwth-aachen.de)



 Sat, 06 Jun 1998 03:00:00 GMT   
 
   [ 1 post ] 

Similar Threads

1. tcsh: completing ssh commands

2. Tcsh builtin command "complete"

3. "complete" command in tcsh

4. tcsh & complete

5. tcsh: complete with backreference

6. complete function in tcsh

7. case insensitive file complete with tcsh

8. nice tcsh complete for 'make'

9. complete tcsh

10. How to use complete in tcsh?


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software