mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-11 14:45:31 +03:00
Update FAQ on sudo + terminfo
This commit is contained in:
parent
d96fdb80ed
commit
45bfeeef21
11
docs/faq.rst
11
docs/faq.rst
@ -130,12 +130,15 @@ by running ``sudo visudo`` and adding the following line::
|
||||
|
||||
Defaults env_keep += "TERM TERMINFO"
|
||||
|
||||
If none of these are suitable for you, you can run sudo as follows::
|
||||
If none of these are suitable for you, you can run sudo as ::
|
||||
|
||||
sudo TERMINFO="$TERMINFO" -s -H
|
||||
sudo TERMINFO="$TERMINFO"
|
||||
|
||||
This will start a new root shell with the correct :envvar:`TERMINFO` value from your
|
||||
current environment copied over.
|
||||
This will make :envvar:`TERMINFO` available
|
||||
in the sudo environment. Create an alias in your shell rc files to make this
|
||||
convenient::
|
||||
|
||||
alias sudo="sudo TERMINFO=\"$TERMINFO\""
|
||||
|
||||
If you have double width characters in your prompt, you may also need to
|
||||
explicitly set a UTF-8 locale, like::
|
||||
|
Loading…
Reference in New Issue
Block a user