Skip to content

Conversation

topalovic
Copy link

@topalovic topalovic commented Sep 6, 2025

Emulates HISTCONTROL=ignoredups from Bash and partly addresses #355.

IRB will not add a command to history if it's the same as the immediate previous command; it won't look further back in the history list. This is also the default behavior in Pry.

It might be safer to expose this as a config flag but personally I don't see the value in consecutive duplicate entries. Open to discussion, of course!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant