Skip to content

Support flushing command history#148

Open
414owen wants to merge 5 commits intohaskell:masterfrom
414owen:history-flushing-tweaks
Open

Support flushing command history#148
414owen wants to merge 5 commits intohaskell:masterfrom
414owen:history-flushing-tweaks

Conversation

@414owen
Copy link
Copy Markdown

@414owen 414owen commented Nov 30, 2020

Doesn't look like #36 will be updated, I'm happy to pick up where that PR left off.

Changes:

  • History is appended instead of overwritten
  • Can be enabled via the preference incAppendHistory (based on ZSH's INC_APPEND_HISTORY)

Regressions:

In order to append to history file, items are now written in the order they were entered. This is the opposite of the previous behavior, so when applications upgrade, their history up to that point will be in reverse order.

nkartashov and others added 3 commits November 24, 2020 23:17
Previously command history was only flushed after the end of session,
this commit adds flushHistory function which performs the flushing and
a flag to enforce flushing after every command.
Previously command history was only flushed after the end of session,
this commit adds flushHistory function which performs the flushing and
a flag to Prefs to enforce flushing after every command.
@nkartashov
Copy link
Copy Markdown

@414owen hey, sorry for disappearing, happy for you to pick it up!

@414owen
Copy link
Copy Markdown
Author

414owen commented Apr 18, 2021

👋 @judah

@athas
Copy link
Copy Markdown
Collaborator

athas commented Feb 6, 2025

Is there still interest in this?

@l29ah
Copy link
Copy Markdown

l29ah commented Mar 27, 2026

YES PLEASE

@athas
Copy link
Copy Markdown
Collaborator

athas commented Mar 27, 2026

I do not understand why CI fails.

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.

4 participants