Skip to content

Commit 67ca9f5

Browse files
committed
Rename read_from_login_shell -> read_from_shell
1 parent 6879432 commit 67ca9f5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ The simplest way to fix this is to have kitty load the environment variables
484484
from your shell configuration at startup using the :opt:`env` directive,
485485
adding the following to :file:`kitty.conf`::
486486

487-
env read_from_login_shell=PATH LANG LC_* XDG_* EDITOR VISUAL
487+
env read_from_shell=PATH LANG LC_* XDG_* EDITOR VISUAL
488488

489489
This works for POSIX compliant shells and the fish shell. Note that it
490490
does add significantly to kitty startup time, so use only if really necessary.

kitty/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ def setup_environment(opts: Options, cli_opts: CLIOptions) -> None:
480480
if cli_opts.listen_on:
481481
cli_opts.listen_on = expand_listen_on(cli_opts.listen_on, from_config_file)
482482
path_from_shell = ''
483-
if vars := opts.env.pop('read_from_login_shell', ''):
483+
if vars := opts.env.pop('read_from_shell', ''):
484484
import fnmatch
485485
import re
486486
senv = read_shell_environment(opts)

kitty/options/definition.py

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

0 commit comments

Comments
 (0)