mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-17 11:01:14 -03:00
This is fairly subtle. When installable, and we either can't find the version file or it is outdated, we ask the user to confirm installation (just like `--install`). We do that only if we are really truly interactive (with a tty!) to avoid `fish -c` running into problems. This check could be tightened even more, because currently: ```fish fish -ic 'echo foo' ``` asks, while ```fish fish -ic 'echo foo' < /dev/null ``` does not. `fish -c` will still error out if it can't find the config, but it will just run if it is out of date.