1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-17 15:01:40 +02:00
zsh/Completion/Base/_match_test
1999-04-15 18:18:42 +00:00

15 lines
650 B
Text

#autoload
# This function is called at the beginning of functions that do matching in
# shell code. It should test the value of `compstate[matcher]' and return
# non-zero if the calling function should try to generate matches for the
# global match specification in use.
#
# This function gets one argument, the name of the function calling it.
#
# If you have a global match specification with more than one set of patterns
# you may want to modify this function to return non-zero for all of your
# match specifications and modify the function `_match_pattern' to build the
# pattern to use in the calling function.
(( compstate[matcher] <= 1 ))