mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 06:41:14 -03:00
Query terminal only just before reading from it
Commit5e317497ef(Query terminal before reading config, 2025-05-17) disabled the kitty keyboard protocol in "fish -c read". This seems surprising, and it's not actually necessary that we query before reading config; we only need query results before we read from the TTY for the first time (which is about the time we call __fish_config_interactive). Let's do that, reverting parts of5e317497ef.
This commit is contained in:
@@ -1696,6 +1696,8 @@ Fish also provides additional information through the values of certain environm
|
||||
.. envvar:: fish_terminal
|
||||
|
||||
the name and version of the terminal fish is running inside (for example as reported via :ref:`XTVERSION <term-compat-xtversion>`).
|
||||
This is initialized just before the first interactive prompt is shown (possibly via builtin :doc:`read <cmds/read>`),
|
||||
that is, on the first ``fish_prompt`` or ``fish_read`` :ref:`event <event>`.
|
||||
|
||||
.. envvar:: history
|
||||
|
||||
|
||||
Reference in New Issue
Block a user