Merge pull request #18691 from valentinbinotto/valentin-dev
Some checks are pending
build-test / Build the x86 ubuntu 22.04 docker image (push) Waiting to run
build-test / Test ubuntu x86 docker image (push) Blocked by required conditions
build-test / Build the ARM ubuntu 22.04 docker image (push) Waiting to run
build-test / Test ubuntu ARM docker image (push) Blocked by required conditions

doc: state correct default behaviour of VTYSH_PAGER env if unset (vtysh manpage)
This commit is contained in:
Donald Sharp 2025-04-23 09:23:12 -04:00 committed by GitHub
commit 827e1d69b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -79,7 +79,7 @@ OPTIONS available for the vtysh command:
ENVIRONMENT VARIABLES ENVIRONMENT VARIABLES
===================== =====================
VTYSH_PAGER VTYSH_PAGER
This should be the name of the pager to use. Default is more. This should be the name of the pager to use. Default is *more*.
VTYSH_HISTFILE VTYSH_HISTFILE
Override the history file for vtysh commands. Logging can be turned off using ``VTYSH_HISTFILE=/dev/null vtysh``. Override the history file for vtysh commands. Logging can be turned off using ``VTYSH_HISTFILE=/dev/null vtysh``.

View file

@ -70,8 +70,7 @@ and the :clicmd:`terminal paginate` command:
(particularly waiting at the end of output) tends to be annoying to the (particularly waiting at the end of output) tends to be annoying to the
user. Using ``less -EFX`` is recommended for a better user experience. user. Using ``less -EFX`` is recommended for a better user experience.
If this environment variable is unset, *vtysh* defaults to not using any If this environment variable is unset, *vtysh* defaults to using *more*.
pager.
This variable should be set by the user according to their preferences, This variable should be set by the user according to their preferences,
in their :file:`~/.profile` file. in their :file:`~/.profile` file.