Skip to content

fish 4.3 recreates config.fish if removed #12230

Closed

Description

@injust

After upgrading to fish 4.3, config.fish is recreated (if you remove it) every time fish runs. I'm not sure if this change in behaviour was intended.

The change was made in 3e7c5ae. Prior to 4.3, creating the default config.fish and empty configuration directories was conditional on an old value of __fish_initialized.

Originally, I removed config.fish after moving my config to ~/.config/fish/conf.d/. But I have no problems gitignoring the file if it's intended for config.fish to always stick around.


fish: 4.3.1 (via Homebrew)
OS: macOS Sequoia 15.7.3
Terminal: Ghostty 1.3.0

Activity

  1. changed the title [-]fish 4.3 keeps recreating `config.fish`[/-] [+]fish 4.3 keeps recreating `config.fish` if removed[/+] on Dec 29, 2025
  2. changed the title [-]fish 4.3 keeps recreating `config.fish` if removed[/-] [+]fish 4.3 recreates `config.fish` if removed[/+] on Dec 29, 2025
  3. faho commented on Dec 29, 2025

    @faho
    Member

    Yeah, this used to be guarded by a universal variable, since 190d367 that no longer exists and we do an extremely forceful migration off them.

    I complained about part of that in #12161. I don't believe it's worth it to be that harsh in removing the default universal variables.

    The simplest fix is probably to remove a lot of that migration.

  4. added
    regressionSomething that used to work, but was broken, especially between releases
    on Dec 29, 2025
  5. added a commit that references this issue on Dec 29, 2025
    1263132
  6. added this to the fish 4.3.2 milestone on Dec 29, 2025
  7. added a commit that references this issue on Dec 29, 2025
    abb8258
  8. added a commit that references this issue on Dec 29, 2025
    7640e95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    regressionSomething that used to work, but was broken, especially between releases

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions