Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Add CORRECT_NOCOMPSYS option



On Apr 5,  2:07am, Frank Terbeck wrote:
}
} This certainly is not perfect. A better solution would be to disallow
} _commandname type function names from being the result of a correction
} without completely disabling correction.

My reservation about this is that the leading-underscore naming
convention is (1) just that, a convention, and (2) specific to this
implementation of the completion system -- the whole idea of putting
the completion system into shell code was to remove this kind of
dependency from the base shell and make it possible for anyone to
implement their own system (admittedly increasingly unlikely at
this point, but still).

A more general solution would be an fignore-type variable, which
compinit could set to the value "_*" or some such thing.

-- 



Messages sorted by: Reverse Date, Date, Thread, Author