zsh-users
 help / color / mirror / code / Atom feed
From: "Peter Slížik" <peter.slizik@gmail.com>
To: Zsh-Users List <zsh-users@zsh.org>
Subject: Adding a completion file has created a delay in ZSH startup time
Date: Wed, 29 Sep 2021 11:43:58 +0200	[thread overview]
Message-ID: <CAC-uhUD1ov=_ukH0S+3g7HQz6EMEG1sh7HU_2B+zzjVgiwQuwQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 460 bytes --]

Hello,

I'm trying to write my first completion file.

I've added ~/.zsh/completions to fpath:

fpath=(~/.zsh/autoload ~/.zsh/completions $fpath)

Then I created file ~/.zsh/completions/_myapp with the following content:

#compdef myapp
compadd start restart stop

However, this seemingly simple change has added 1 or 2 seconds to ZSH start
time. The start used to be almost immediate. Now there is an annoying delay.

What is the reason?

Best regards,
Peter

[-- Attachment #2: Type: text/html, Size: 1189 bytes --]

             reply	other threads:[~2021-09-29  9:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-29  9:43 Peter Slížik [this message]
2021-09-29  9:54 ` Roman Perepelitsa

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='CAC-uhUD1ov=_ukH0S+3g7HQz6EMEG1sh7HU_2B+zzjVgiwQuwQ@mail.gmail.com' \
    --to=peter.slizik@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).