Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PR] vcs_info-examples: optimize +vi-git-untracked() #76
- X-seq: zsh-workers 49130
- From: Oliver Kiddle <opk@xxxxxxx>
- To: "Suraj N. Kurapati" <sunaku@xxxxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: [PR] vcs_info-examples: optimize +vi-git-untracked() #76
- Date: Sun, 27 Jun 2021 11:13:53 +0200
- Archived-at: <https://zsh.org/workers/49130>
- In-reply-to: <20210626230903.43ba5516@ratham>
- List-id: <zsh-workers.zsh.org>
- References: <20210626230903.43ba5516@ratham>
"Suraj N. Kurapati" wrote:
> 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`.
The -q option to grep isn't strictly portable. It is certainly lacking
on Solaris. It is more reliable with egrep but that may not be faster.
It does seem to be there on Linux and the main BSDs so I don't know
whether we should still care about this.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author