-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REPL history. #16
Comments
trymodule looks cool. But I'm even more impressed by the Regarding the history feature: I’ve been thinking about it before because I was missing it myself in // load the last session after server start
server.commands.load.action.apply(server, [path.join(process.env.HOME, 'n_repl_history')]); // save the session on exit
process.on('exit', function () {
server.commands.save.action.apply(server, [path.join(process.env.HOME, 'n_repl_history')]);
}); What do you think? |
I don't mind the extra dep. The neat thing about a shared history package is that if others use it, like |
If there just wasn’t that incompatibility issue tmpvar/repl.history#6 ... |
👍 |
I was looking at trymodule and noticed it used repl.history
and thought it might be a good thing for
n_
too.I think some shells have a repl history baked in so not too sure if it's needed.
The text was updated successfully, but these errors were encountered: