X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/c82395b46d238948882045e76e7770319a4f40e8..52f3900c0c7dec8581fa907495a09c900a3d39d7:/stgit/config.py diff --git a/stgit/config.py b/stgit/config.py index e28633d..66e9f41 100644 --- a/stgit/config.py +++ b/stgit/config.py @@ -40,6 +40,10 @@ config.read('/etc/stgitrc') config.read(os.path.expanduser('~/.stgitrc')) config.read(os.path.join(basedir.get(), 'stgitrc')) +# Set the PAGER environment to the config value (if any) +if config.has_option('stgit', 'pager'): + os.environ['PAGER'] = config.get('stgit', 'pager') + # [gitmergeonefile] section is deprecated. In case it exists copy the # options/values to the [stgit] one if config.has_section('gitmergeonefile'):