summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Schoenberger <akschoenberger@gmail.com>2023-02-27 17:14:48 -0500
committerGitHub <noreply@github.com>2023-02-27 14:14:48 -0800
commit0a502accfc5060e032eed5a7d919eb33e3617b2a (patch)
tree9b403028d1617b0af2ab3bcd32252ee59d678d29
parent141873f86d299a7c8469392367b820960d01707a (diff)
add comment to pgclirc pager section on default LESS (#1395)
-rw-r--r--changelog.rst1
-rw-r--r--pgcli/pgclirc7
2 files changed, 5 insertions, 3 deletions
diff --git a/changelog.rst b/changelog.rst
index cc441c41..70f76abd 100644
--- a/changelog.rst
+++ b/changelog.rst
@@ -13,6 +13,7 @@ Features:
* Config option to not restart connection when cancelling a `destructive_warning` query. By default,
it will now not restart.
* Config option to always run with a single connection.
+* Add comment explaining default LESS environment variable behavior and change example pager setting.
Bug fixes:
----------
diff --git a/pgcli/pgclirc b/pgcli/pgclirc
index 2c92940b..b32eda0d 100644
--- a/pgcli/pgclirc
+++ b/pgcli/pgclirc
@@ -95,9 +95,10 @@ qualify_columns = if_more_than_one_table
# When no schema is entered, only suggest objects in search_path
search_path_filter = False
-# Default pager.
-# By default 'PAGER' environment variable is used
-# pager = less -SRXF
+# Default pager. See https://www.pgcli.com/pager for more information on settings.
+# By default 'PAGER' environment variable is used. If the pager is less, and the 'LESS'
+# environment variable is not set, then LESS='-SRXF' will be automatically set.
+# pager = less
# Timing of sql statements and table rendering.
timing = True