Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

vcs: Disable alias of grep to fix performance penalty #685

Merged
merged 1 commit into from
Dec 5, 2017

Conversation

kenhys
Copy link
Contributor

@kenhys kenhys commented Nov 27, 2017

If user defined alias of grep command with '-r' or '--recursive'
option, it causes a slow response of command line. It is not
unexpected behavior of vcs info.

This commit explicitly disables alias of grep to suppress side
effects.

If user defined alias of grep command with '-r' or '--recursive'
option, it causes a slow response of command line. It is not
unexpected behavior of vcs info.

This commit explicitly disables alias of grep to suppress side
effects.
@kenhys kenhys changed the title Disable alias of grep vcs: Disable alias of grep Nov 27, 2017
@kenhys kenhys changed the title vcs: Disable alias of grep vcs: Disable alias of grep to fix performance penalty Dec 3, 2017
@bhilburn
Copy link
Member

bhilburn commented Dec 5, 2017

@kenhys - Wow! This is great! This is a subtle issue with a big impact. Thanks so much for upstreaming the fix! I really appreciate it.

Welcome to P9k =)

@bhilburn bhilburn merged commit bf9d8a5 into Powerlevel9k:master Dec 5, 2017
dritter added a commit to dritter/powerlevel9k that referenced this pull request Jun 6, 2018
… staging_065

Conflicts were:
- functions/vcs.zsh: Two commits avoided wrapper behaviour. Powerlevel9k#685
in grep, Powerlevel9k#797 in git.
@dritter dritter mentioned this pull request Jun 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants