aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2015-05-05 14:30:54 +0200
committerMathias Bynens <mathias@qiwi.be>2015-05-05 14:33:09 +0200
commit9d30bd673c72ed1cadb2720fe4fb44a8ce915a2b (patch)
treec9a6e14a646917b4481fb55712762d5697fb0821
parent79e415e0eda32029bdda6b44307ab589af7d66b8 (diff)
downloaddotfiles-9d30bd673c72ed1cadb2720fe4fb44a8ce915a2b.tar.gz
dotfiles-9d30bd673c72ed1cadb2720fe4fb44a8ce915a2b.tar.bz2
dotfiles-9d30bd673c72ed1cadb2720fe4fb44a8ce915a2b.zip
.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
-rw-r--r--.exports5
1 files changed, 5 insertions, 0 deletions
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}";