ble.sh icon indicating copy to clipboard operation
ble.sh copied to clipboard

History only append feature (like fish shell)

Open Deshdeepak1 opened this issue 7 months ago • 1 comments

$ ble summary

<!-- Please include the result of the above command if applicable. -->

history share option currently allows to sync history between multiple shells. But I only want that all new shells have history of all previous running shells. This is how fish shell currently works. Currently I just include history -a in PROMPT_COMMAND. A ble option would be nice.

Deshdeepak1 avatar Jun 15 '25 15:06 Deshdeepak1

Currently I just include history -a in PROMPT_COMMAND.

This is sufficient. The reason that I added history_share for history -a; history -c; history -r is that reloading the entire history for every command is inefficient, and the line editor can improve the behavior by not reloading the entire history. In the case of history -a, there is no inefficiency, so you can continue to use history -a in PROMPT_COMMAND.

A ble option would be nice.

I might add a special value for history_share.

akinomyoga avatar Jun 15 '25 16:06 akinomyoga