tcsh - complete command

tcsh - complete command

Post by Can Adam Albayra » Wed, 20 Dec 1995 04:00:00

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'

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

Any suggestions?



1. "complete" command in tcsh


I'm having a bit of trouble to get complete in tcsh to do what I want:

complete cd 'p/1/d:^CVS/'

I want this to mean "complete cd with directorys but skip those named CVS".
It doesn't work though, could anyone shed som light on this?

Any help appreciated!

version tcsh 6.04.00 (Cornell) 93/07/03 (sun4) options 8b,nls,dl,al

Ake Beckman

        UNIX Systems Support
        Ellemtel Telecommunications Systems Laboratories
        S-125 25 STOCKHOLM Sweden
        Phone   : +46 8 727 3782  Fax  : +46 8 647 82 76

2. Clustering on Sun boxes...

3. tcsh: How to make 'complete' accept multiple command-patterns?

4. Kensington Orbit Trackball

5. tcsh: completing ssh commands

6. Quake pkg

7. Tcsh builtin command "complete"

8. Blocking with pipes.

9. Tcsh complete examples

10. nice tcsh complete for 'make'

11. complete function in tcsh

12. tcsh: complete with backreference

13. ksh, bash, zsh equivalent for tcsh complete-word-fwd?