Parent: c0b61227ac9e536bebafc031dcdc81ab1ab34980
Author: Marijn Suijten <marijns95@gmail.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2020-01-22 00:53:49
Tree: 136806950f533652ee00aa8f2baac258601d3d28
shared: shell: Only omit consecutive duplicate history lines. Change rl_handler to append duplicate history, as long as it isn't identical to the last line. It prevents consecutive duplicates while still having an accurate overview of the most recent commands used, mimicking most modern shells. This addresses my only major gripe with bluetoothctl: pressing UP does not retrieve the last typed command when it is a duplicate of something else written (much) earlier in the history. It is especially noticeable when needing the same command repeatedly.
Diffstat
| M | src/shared/shell.c | | | 5 | ++++- |
1 files changed, 4 insertions(+), 1 deletions(-)