I have a program that is invoked:
programName string1 -arg1 filex.type1 -arg2 filey.type2
string1 doesn't have to come first: "programName -arg1 filex.type1 string1 -arg2 filey.type2" and "programName -arg1 filex.type1 -arg2 filey.type2 string1" are both legal. How can I set up a tcsh completion to tab complete "arg1", "arg2", and the files? Requiring string1 to come first is acceptable. Requiring string1 to come last is not acceptable. "Use bash|korn|zsh" is not
A little more detail:
programName string1 -textfile [complete *.txt] -otherfile [complete *.bin]
edit: I have a second program that works similarly but requires string1 to come last. I think I can handle that one by just ignoring string1 for the "complete" command.
programName string1 -arg1 filex.type1 -arg2 filey.type2
string1 doesn't have to come first: "programName -arg1 filex.type1 string1 -arg2 filey.type2" and "programName -arg1 filex.type1 -arg2 filey.type2 string1" are both legal. How can I set up a tcsh completion to tab complete "arg1", "arg2", and the files? Requiring string1 to come first is acceptable. Requiring string1 to come last is not acceptable. "Use bash|korn|zsh" is not
A little more detail:
programName string1 -textfile [complete *.txt] -otherfile [complete *.bin]
edit: I have a second program that works similarly but requires string1 to come last. I think I can handle that one by just ignoring string1 for the "complete" command.
