Repository navigation
Ask to install installable builds on interactive launch - #10899
Conversation
|
Okay, some spicy changes that I hope make this nicer to use:
That means after you install or update this, if you just run If you want to skip the confirmation, you can run Note: If fish wasn't built as installable, In total, what I hope this does is remove the need for people to think about fish being installable - they're just asked to update the assets. I'm sure this won't be the last of it, but I'm reasonably happy with this for now. |
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.
|
Alright, I decided to just merge this now, we can work on it later. |
Description
One downside installable builds currently have is the need to run
fish --installevery so often.This makes it so interactive runs (real interactive runs,
fish -idoesn't suffice, you need a terminal so we can ask) do that automatically, including asking for it.That means you can do
You can still decline (by entering anything other than "yes"). If the files are missing, it will run without reading any config - this is quite uncomfortable, it won't even have the regular keybindings. (if they are outdated, things will "most likely" work out okay, but it will ask again next run)
Notably, for non-interactive runs, this won't install automatically, and it won't even complain about outdated files anymore.
If the files don't exist, on the other hand, it will print an error and then run.
TODOs: