Rename read_from_login_shell -> read_from_shell

This commit is contained in:
Kovid Goyal
2025-10-08 05:21:48 +05:30
parent 6879432704
commit 67ca9f5b7d
3 changed files with 4 additions and 4 deletions

View File

@@ -480,7 +480,7 @@ def setup_environment(opts: Options, cli_opts: CLIOptions) -> None:
if cli_opts.listen_on:
cli_opts.listen_on = expand_listen_on(cli_opts.listen_on, from_config_file)
path_from_shell = ''
if vars := opts.env.pop('read_from_login_shell', ''):
if vars := opts.env.pop('read_from_shell', ''):
import fnmatch
import re
senv = read_shell_environment(opts)

View File

@@ -3272,11 +3272,11 @@ recursively, for example::
The value of :code:`VAR2` will be :code:`<path to home directory>/a/b`.
Use the special
value :code:`read_from_login_shell` to have kitty read the specified variables from
value :code:`read_from_shell` to have kitty read the specified variables from
your :opt:`login shell <shell>` configuration.
Useful if your shell startup files setup a bunch of environment variables that you want available to kitty and
in kitty session files. Each variable name is treated as a glob pattern to match. For example:
:code:`env read_from_login_shell=PATH LANG LC_* XDG_* EDITOR VISUAL`. Note that these variables are only
:code:`env read_from_shell=PATH LANG LC_* XDG_* EDITOR VISUAL`. Note that these variables are only
read after the configuration is fully processed, thus they are not available for recursive expansion and
they will override any variables set by other :opt:`env` directives.
''',