You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity
[-]fish 4.3 keeps recreating `config.fish`[/-][+]fish 4.3 keeps recreating `config.fish` if removed[/+][-]fish 4.3 keeps recreating `config.fish` if removed[/-][+]fish 4.3 recreates `config.fish` if removed[/+]faho commentedon Dec 29, 2025
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.
Create user config directories only on first startup again
fish4.3.1 (re)makes~/.config/fish/conf.d/#12231 as a duplicate of this issueCreate user config file/directories only on first startup again
Create user config file/directories only on first startup again