From c6ec2d4282b26b5676e2e4c25e17d32a92218900 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 29 Jul 2021 12:26:57 +0530 Subject: [PATCH] Update docs to reflect the fact that the shell is run with both --login and --interactive to read its env vars --- kitty/options/definition.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/kitty/options/definition.py b/kitty/options/definition.py index 7f22a89be..bb0bdcd34 100644 --- a/kitty/options/definition.py +++ b/kitty/options/definition.py @@ -2410,8 +2410,8 @@ opt('shell', '.', long_text=''' The shell program to execute. The default value of . means to use whatever shell is set as the default shell for the current user. Note that on macOS if you -change this, you might need to add :code:`--login` to ensure that the shell -starts in interactive mode and reads its startup rc files. +change this, you might need to add :code:`--login` and :code:`--interactive` +to ensure that the shell starts in interactive mode and reads its startup rc files. ''' ) @@ -2422,12 +2422,11 @@ config file or similar tasks. The default value of . means to use the environment variables :envvar:`VISUAL` and :envvar:`EDITOR` in that order. If these variables aren't set, kitty will -run your shell (``$SHELL -l -c env``) to see if your shell config files set -:envvar:`VISUAL` or :envvar:`EDITOR`. If that doesn't work, kitty will cycle -through various known editors (``vim``, ``emacs``, etc) and take the first one -that exists on your system. -''' - ) +run your :opt:`shell` (``$SHELL -l -i -c env``) to see if your shell config +files set :envvar:`VISUAL` or :envvar:`EDITOR`. If that doesn't work, kitty +will cycle through various known editors (``vim``, ``emacs``, etc) and take the +first one that exists on your system. +''') opt('close_on_child_death', 'no', option_type='to_bool', ctype='bool',