hstr
hstr copied to clipboard
Delete history without printing whole history by `history -r`
Is it possible to config hstr
to not print out whole history by history -r
after deleting history?
I found it quite annoying because it shows little information (it is a super long list) and it flushed out all my scrollback which may be useful in some situtation
Did you find a way to do this?
@dvorka, after deleting an entry and doing "ctrl+c", history -r runs, printing the whole history. Any way to avoid that?
Perhaps I can make it configurable. The purpose of history -r
is to get history items from shell sessions in other terminals to the current one. I agree that it might be subjective and some users don't need it. WDYT?
@dvorka how about history -r > /dev/null
? seems can keep the functionality and do not flush the screen
I also suspected another weird behavior that is related to history deletion. When an item from history is deleted (and deletion is confirmed with 'y') then selecting another item from history appends string history -r
to it. So for example when (after deletion) I select by TAB
line git log
it actually constructs on command line string git loghistory -r
.
Note, that it behave same for 2.0.0 (tested on Ubuntu) and 2.2.0 (tested in NixOS). And by the way: this is most useful utility I've found ever. Magic :-)
@pkral78 Oh, your are right - it's reproducible! I created https://github.com/dvorka/hstr/issues/386. Thank you for the report!
And by the way: this is most useful utility I've found ever. Magic :-) My pleasure!
@dvorka #386 is actually not fixed, see https://github.com/dvorka/hstr/issues/386#issuecomment-1103557204
Bump. I made #457 to fix this.