From 9d30bd673c72ed1cadb2720fe4fb44a8ce915a2b Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Tue, 5 May 2015 14:30:54 +0200 Subject: .exports: Enable persistent REPL history for `node` This works as of io.js v2.0.0. https://github.com/iojs/io.js/blob/v2.0.0/CHANGELOG.md#2015-05-04-version-200-rvagg --- .exports | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.exports b/.exports index 79d32d5..436e113 100644 --- a/.exports +++ b/.exports @@ -1,6 +1,11 @@ # Make vim the default editor. export EDITOR='vim'; +# Enable persistent REPL history for `node`. +NODE_REPL_HISTORY_FILE=~/.node_history; +# Allow 32³ entries; the default is 1000. +NODE_REPL_HISTORY_SIZE='32768'; + # Increase Bash history size. Allow 32³ entries; the default is 500. export HISTSIZE='32768'; export HISTFILESIZE="${HISTSIZE}"; -- cgit v1.2.3