zsh-autosuggestions
zsh-autosuggestions copied to clipboard
Disable `ZSH_AUTOSUGGEST_STRATEGY: completion` when on external HDD
Is your feature request related to a problem? Please describe.
Using the completion strategy makes the shell access the filesystem, which is very slow on external HDDs. It would good to have an option to disable this only on external volumes.
Describe the solution you'd like
An option that accepts a regexp to disable the completion strategy.
Describe alternatives you've considered
I can potentially do this myself with shell hooks, but I don't know if setting ZSH_AUTOSUGGEST_STRATEGY there will take effect.
An option that accepts a regexp to disable the completion strategy.
Have you tried ZSH_AUTOSUGGEST_COMPLETION_IGNORE? https://github.com/zsh-users/zsh-autosuggestions#skipping-completion-suggestions-for-certain-cases