From: James Pearson <xiong.chiamiov@gmail.com>
To: zsh-users@zsh.org
Subject: DEBUG signal triggered on tab-completion with compinit
Date: Mon, 2 Apr 2012 23:25:21 -0700 [thread overview]
Message-ID: <CA+ds9g+_qWff1Nbk_d_uWtyLv1Qu-e-WwF=GQpTLicMxKxqiew@mail.gmail.com> (raw)
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
next reply other threads:[~2012-04-03 6:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-03 6:25 James Pearson [this message]
2012-04-03 6:47 ` Frank Terbeck
2012-04-03 15:37 ` James Pearson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+ds9g+_qWff1Nbk_d_uWtyLv1Qu-e-WwF=GQpTLicMxKxqiew@mail.gmail.com' \
--to=xiong.chiamiov@gmail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).