mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-24 17:27:39 +02:00
Shell integration now aliases sudo to make the kitty terminfo db available in the sudo environment
This should make terminfo completely transparent for most users on the local machine and on remote machines that are connected to with the ssh kitten.
This commit is contained in:
@@ -3028,7 +3028,7 @@ jumping to previous prompts, browsing the output of the previous command in a
|
||||
pager, etc. on supported shells. Set to :code:`disabled` to turn off shell
|
||||
integration, completely. It is also possible to disable individual features, set
|
||||
to a space separated list of these values: :code:`no-rc`, :code:`no-cursor`,
|
||||
:code:`no-title`, :code:`no-cwd`, :code:`no-prompt-mark`, :code:`no-complete`.
|
||||
:code:`no-title`, :code:`no-cwd`, :code:`no-prompt-mark`, :code:`no-complete`, :code:`no-sudo`.
|
||||
See :ref:`Shell integration <shell_integration>` for details.
|
||||
'''
|
||||
)
|
||||
|
||||
@@ -863,7 +863,7 @@ def store_multiple(val: str, current_val: Container[str]) -> Iterable[Tuple[str,
|
||||
yield val, val
|
||||
|
||||
|
||||
allowed_shell_integration_values = frozenset({'enabled', 'disabled', 'no-rc', 'no-cursor', 'no-title', 'no-prompt-mark', 'no-complete', 'no-cwd'})
|
||||
allowed_shell_integration_values = frozenset({'enabled', 'disabled', 'no-rc', 'no-cursor', 'no-title', 'no-prompt-mark', 'no-complete', 'no-cwd', 'no-sudo'})
|
||||
|
||||
|
||||
def shell_integration(x: str) -> FrozenSet[str]:
|
||||
|
||||
Reference in New Issue
Block a user