Skip to content

Conversation

@alberti42
Copy link
Contributor

Motivation

fzf-tab sources lib/zsh-ls-colors/ls-colors.zsh unconditionally. However, when the aloxaf/fzftab module is present and successfully loaded, filename coloring is performed directly by zsh through the module, so sourcing ls-colors.zsh is redundant.

What this PR does

  • Unsets FZF_TAB_MODULE_VERSION at init to avoid stale values influencing the logic.
  • Attempts to load aloxaf/fzftab (and keeps the existing rebuild/version-check logic).
  • Sources ls-colors.zsh only if the module is not available or fails to load.

Result

No behavior change for users without the module; less work at startup for users with a working aloxaf/fzftab module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant