summaryrefslogtreecommitdiff
path: root/src/mailman/config
diff options
context:
space:
mode:
authorBarry Warsaw2016-04-22 15:24:25 -0400
committerBarry Warsaw2016-04-22 16:33:37 -0400
commitd8d7608902ef58bcc3cf1225a710cf8adf5fca82 (patch)
tree9469f0d1d2fe93144674fa983c320679185191bd /src/mailman/config
parent4ce8c79d9b758d66fdb1c0a400fe1130b75db552 (diff)
downloadmailman-d8d7608902ef58bcc3cf1225a710cf8adf5fca82.tar.gz
mailman-d8d7608902ef58bcc3cf1225a710cf8adf5fca82.tar.zst
mailman-d8d7608902ef58bcc3cf1225a710cf8adf5fca82.zip
Fix #228
``mailman shell`` now supports readline history if you set the ``[shell]history_file`` variable in mailman.cfg. Also, many useful names are pre-populated in the namespace of the shell. (Closes: #228) With test coverage.
Diffstat (limited to 'src/mailman/config')
-rw-r--r--src/mailman/config/schema.cfg4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mailman/config/schema.cfg b/src/mailman/config/schema.cfg
index f00cc5e29..1cc209e73 100644
--- a/src/mailman/config/schema.cfg
+++ b/src/mailman/config/schema.cfg
@@ -89,6 +89,10 @@ banner: Welcome to the GNU Mailman shell
# that any import errors will be displayed to stderr.
use_ipython: no
+# Set this to allow for command line history if readline is available. This
+# can be as simple as $var_dir/history.py to put the file in the var directory.
+history_file:
+
[paths.master]
# Important directories for Mailman operation. These are defined here so that