'Slow git autocomplete with WSL2 and zsh
I recently switched from git bash on windows to using WSL2 almost exclusively.
The issue I am having is that my tab autocompletes for branches is insanely slow (in the seconds). Other autocomplete are fast, such as autocompleting git commands (git checko[TAB] would autocomplete to checkout without problem).
What can I do to isolate the problem or resolve ( less than 1 second to autocomplete) it?
Solution 1:[1]
git config --global oh-my-zsh.hide-info 1
Disable oh-my-zsh git prompt magic.
Root cause is WSL using the slow 9P protocol to access Windows drive.
ref. https://stackoverflow.com/a/68974497/135962
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | AndyWatts |
