mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 04:32:05 +00:00
Rename read_from_login_shell -> read_from_shell
This commit is contained in:
parent
6879432704
commit
67ca9f5b7d
3 changed files with 4 additions and 4 deletions
|
|
@ -484,7 +484,7 @@ 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
|
||||
env read_from_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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
''',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue