repl: default persistence to ~/.node_repl_history
authorJeremiah Senkpiel <fishrock123@rocketmail.com>
Tue, 4 Aug 2015 06:24:03 +0000 (23:24 -0700)
committerRod Vagg <rod@vagg.org>
Tue, 4 Aug 2015 18:56:18 +0000 (11:56 -0700)
commitf7d5e4c618a0e9212e194be02c09d75636cf9fe3
treef00ecf61ab635dd0113a4bb032fa6b15a6e4bcce
parentceee8d28079b5976e49b753cbbf314867101a6ea
repl: default persistence to ~/.node_repl_history

Makes the REPL persistently save history by default to
~/.node_repl_history when in terminal mode.
This can be disabled by setting NODE_REPL_HISTORY="".

PR-URL: https://github.com/nodejs/io.js/pull/2224
Reviewed-By: Michaƫl Zasso <mic.besace@gmail.com>
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
lib/internal/repl.js