zsh-workers
 help / color / mirror / code / Atom feed
* [PR] vcs_info-examples: optimize +vi-git-untracked() #76
@ 2021-06-27  6:09 Suraj N. Kurapati
  2021-06-27  9:13 ` Oliver Kiddle
  2021-06-27 13:03 ` Roman Perepelitsa
  0 siblings, 2 replies; 8+ messages in thread
From: Suraj N. Kurapati @ 2021-06-27  6:09 UTC (permalink / raw)
  To: zsh-workers

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

Hello,

I have submitted pull-request #76 on the GitHub repo regarding:

           https://github.com/zsh-users/zsh/pull/76

Speed up the prompt on large and/or deep working directories by
stopping grep(1) as soon as it finds a single match, with `-q`.
Also, optimize the regular expression with an anchor and space.

Previously, +vi-git-untracked() waited for grep(1) to find all
matches of untracked files, redirecting them away to /dev/null,
before finally concluding that untracked files do indeed exist.

Thanks for your consideration.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 963 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-08-04  8:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-27  6:09 [PR] vcs_info-examples: optimize +vi-git-untracked() #76 Suraj N. Kurapati
2021-06-27  9:13 ` Oliver Kiddle
2021-06-27 10:04   ` Frank Terbeck
2021-06-28 17:16   ` Suraj N. Kurapati
2021-06-27 13:03 ` Roman Perepelitsa
2021-06-28 22:57   ` Suraj N. Kurapati
2021-06-29  7:16     ` Roman Perepelitsa
2021-08-04  8:55     ` Roman Neuhauser

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).