Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
DEBUG signal triggered on tab-completion with compinit
- X-seq: zsh-users 16964
- From: James Pearson <xiong.chiamiov@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: DEBUG signal triggered on tab-completion with compinit
- Date: Mon, 2 Apr 2012 23:25:21 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=YxI4NYIO3j2c1NNrNp13RdvN/+UjMxjWHNDSDo2GVYQ=; b=wsawEPClrTtMSTCURb4nwHKXvDq843X1tXiX6vVZFcP9X9zOZQIgLeRq9IatO7zSLP G1sBK7XtaiW+VHXZxzFkToxq+qU67rMUN0P/nkuXLNA1tiGzK7Z5WFF5xnGEjyNTuQch XmzAZTNoGEtOWG9xD1rkiSUTKB0PQsQS88IJJ9S/57WT4r89VDFMOqTzvcwERL/RoaT6 ldsINdMbevuw7h5ANxi/d3V5Mz6HAApm5E3Xxcm0O4uQ/04SJyJQTaSdzuzZzNqwrGd1 aiZ+bVykVuOkkup2qtJrkJZLkX9vwVZNzyMp2caPvYK9lrSXSMH4mt+COzLN2doX7P0N 44XQ==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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