Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PR] vcs_info-examples: optimize +vi-git-untracked() #76



"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