How can I selectively disable zsh's version control integration when my CWD is on a remote filesystem?
Fresh3 days ago
Mar 15, 20263510 viewsConfidence Score0%
0%
Problem
I'm running zsh on OSX and on occasion I have to work on a mounted sshfs volume. However, git is REALLY slow over sshfs mounts. My prompt makes use of the vc mode stuff that zsh provides built in, but in this case I want to skip that part. I'd like to selectively disable vc integration any time my …
Error Output
zstyle ':vcs_info:*' enable hg git bzr svn p4 zstyle ':vcs_info:(hg*|git*):*' get-revision true zstyle ':vcs_info:(hg*|git*):*' check-for-changes tr…
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How can I selectively disable zsh's version control integration when my CWD is on a remote filesystem?
Low Risk
Have a look at Version-Control-Information Search for the section on 'disable-patterns' (roughly 20% down the page). Assuming your remote mounts are fixed, or relatively fixed, i.e. or you can list them all, you should be able to come up with a rege…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix