Bug 505678

Summary: Automatically remove all previously entered duplicate commands
Product: [Applications] konsole Reporter: Fernando M. Muniz <fernandommuniz>
Component: generalAssignee: Konsole Bugs <konsole-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: wishlist CC: ninjalj
Priority: NOR Keywords: usability
Version First Reported In: 25.04.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Fernando M. Muniz 2025-06-17 03:27:16 UTC
Konsole stores the exact same command more than just it's most recent version, which means that older and different commands get removed because they got pushed out by these duplicates.

I'm requesting that whenever a commands is run, all the older exact duplicates of that command gets deleted.

It would also make it easier to navigate.
Comment 1 ninjalj 2025-11-02 12:08:20 UTC
This functionality belongs to the shell, not to the terminal emulator.

In bash, HISTCONTROL=erasedups provides this functionality.

In zsh, setopt HIST_IGNORE_ALL_DUPS provides this functionality.