mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 16:58:09 +02:00
Rename read_from_login_shell -> read_from_shell
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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.
|
||||
''',
|
||||
|
||||
Reference in New Issue
Block a user