mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 14:46:03 +00:00
Allow easily injecting env vars from the login shell config into the env in which kitty runs child processes
Fixes #9042
This commit is contained in:
parent
fcccadc8f3
commit
a9f80fe05b
5 changed files with 48 additions and 10 deletions
|
|
@ -137,6 +137,10 @@ Detailed list of changes
|
|||
0.43.2 [future]
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
- Allow kitty to read a specified set of environment variables from your
|
||||
login shell at startup using the :opt:`env` directive in kitty.conf
|
||||
(:iss:`9042`)
|
||||
|
||||
- Fix a regression in 0.43.0 that caused a black flicker when closing a tab in
|
||||
the presence of a background image (:iss:`9060`)
|
||||
|
||||
|
|
|
|||
10
docs/faq.rst
10
docs/faq.rst
|
|
@ -480,6 +480,16 @@ related to localization, such as :envvar:`LANG`, ``LC_*`` and loading of
|
|||
configuration files such as ``XDG_*``, :envvar:`KITTY_CONFIG_DIRECTORY` and,
|
||||
most importantly, ``PATH`` to locate binaries.
|
||||
|
||||
The simplest way to fix this is to have kitty load the environment variables
|
||||
from your shell configuration at startup using the :opt:`env` directive,
|
||||
adding the following to :file:`kitty.conf`::
|
||||
|
||||
env read_from_login_shell=PATH LANG LC_* XDG_* EDITOR VISUAL
|
||||
|
||||
This works for POSIX compliant shells and the fish shell. Note that it
|
||||
does add significantly to kitty startup time, so use only if really necessary.
|
||||
This feature was added in version ``0.43.2``.
|
||||
|
||||
To see the environment variables that kitty sees, you can add the following
|
||||
mapping to :file:`kitty.conf`::
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue