When using the include directive in kitty.conf make the environment variable KITTY_OS available for OS specific config

This commit is contained in:
Kovid Goyal
2022-12-04 21:03:24 +05:30
parent fda4aa21a1
commit d7d96c2e7b
4 changed files with 25 additions and 5 deletions

View File

@@ -212,3 +212,8 @@ Variables that kitty sets when running child programs
Set when enabling :ref:`shell_integration` with :program:`bash`, allowing
:program:`bash` to automatically load the integration script.
.. envvar:: KITTY_OS
Set when using the include directive in kitty.conf. Can take values:
``linux``, ``macos``, ``darwin``.