Skip to content
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: fix persistent history #1593

Closed
wants to merge 1 commit into from

Conversation

silverwind
Copy link
Contributor

ea5195c broke history as opts.terminal was never set to a truthy value. Also renamed the history file variable to match the docs.

cc: @chrisdickinson @indutny

@silverwind silverwind added the repl Issues and PRs related to the REPL subsystem. label May 2, 2015
@bnoordhuis
Copy link
Member

I can't comment on the PR itself but the commit log is too light on details.

@silverwind
Copy link
Contributor Author

@bnoordhuis sorry about that. It's a bad habit, but I usually add commit details when merging.

Issue nodejs#1575 did introduce a check for options.terminal but this variable
wasn't able to get truthy, which in turn broke persistent history
completely. This changes the variable to get truthy on true terminals.

Additionally, the docs and the code did differ on which environment
variable was used for history. This changes the code to use
NODE_REPL_HISTORY_FILE.
@silverwind
Copy link
Contributor Author

Addded description.

@chrisdickinson
Copy link
Contributor

LGTM.

silverwind added a commit that referenced this pull request May 2, 2015
Issue #1575 did introduce a check for options.terminal but this variable
wasn't able to get truthy, which in turn broke persistent history
completely. This changes the variable to get truthy on true terminals.

Additionally, the docs and the code did differ on which environment
variable was used for history. This changes the code to use
NODE_REPL_HISTORY_FILE.

PR-URL: #1593
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
@silverwind
Copy link
Contributor Author

Merged in 2e2fce0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
repl Issues and PRs related to the REPL subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants