Update docs to reflect the fact that the shell is run with both --login and --interactive to read its env vars

This commit is contained in:
Kovid Goyal 2021-07-29 12:26:57 +05:30
parent 66b93a9af8
commit c6ec2d4282
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -2410,8 +2410,8 @@ opt('shell', '.',
long_text=''' long_text='''
The shell program to execute. The default value of . means to use whatever shell 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 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 change this, you might need to add :code:`--login` and :code:`--interactive`
starts in interactive mode and reads its startup rc files. 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` 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 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 run your :opt:`shell` (``$SHELL -l -i -c env``) to see if your shell config
:envvar:`VISUAL` or :envvar:`EDITOR`. If that doesn't work, kitty will cycle files set :envvar:`VISUAL` or :envvar:`EDITOR`. If that doesn't work, kitty
through various known editors (``vim``, ``emacs``, etc) and take the first one will cycle through various known editors (``vim``, ``emacs``, etc) and take the
that exists on your system. first one that exists on your system.
''' ''')
)
opt('close_on_child_death', 'no', opt('close_on_child_death', 'no',
option_type='to_bool', ctype='bool', option_type='to_bool', ctype='bool',