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

DEBUG signal triggered on tab-completion with compinit



Greetings.

I have a program I want to run prior to every command in the shell.
I'm doing this like so:

    $> trap './script.sh' DEBUG

When I have compinit run, tab-completion causes this script to
continuously be called.  Is there a way to prevent this while still
using compinit?

I could also use the precmd function, but that runs *after* my
commands, instead of before.

Thanks.
 - P



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