Skip to content

Tide: Color caching breaks Fish 4.3+ auto theme switching #35

@simono

Description

@simono

Problem

Tide's _tide_pwd.fish and fish_prompt.fish cache colors at function definition time, preventing dynamic theme switching in Fish 4.3+.

Impact

When color variables are changed (e.g., switching between light/dark themes), the prompt colors don't update automatically. This breaks Fish's auto theme switching feature introduced in 4.3+.

Affected Code

  • _tide_pwd.fish: Lines 1-3 cache color variables at definition
  • fish_prompt.fish: Line 25 caches colors
  • _tide_cache_variables: Contributes to the caching behavior

Workaround

After changing color variables, you must manually run:

tide reload

This forces tide to re-read the color variables and update the prompt.

Status

This issue appears to be unreported upstream in the tide project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions