Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-11-01 16:06:29

mustbeit
Member
Registered: 2024-08-05
Posts: 7
LinuxChrome 130.0

Terminal unique recent history -- primary key on bash history

Hi,

when opening a Terminal, with the up/down arrow keys it's possible to view the history of recent executed cmd (I suppose from user/.bash_history).

However, when toggling amongst the choice, they are not unique, if you repleatly executed some cmd.
Example: you run
cmd5
cmd2
cmd2
cmd1
cmd2
cmd4
cmd3
it'll list these, while what I wish are cmd1 to 5,
either in their history of execution, here: cmd5,cmd2,cmd1,cmd4,cmd3
or by frequency of execution, here:cmd2, and then any of the other cmd as each have equal frequency.

In a sense a "primary key" of commands and possibly limited in range, for instance the last 20 unique ones.


Is there so way to have uniqueness in the list choice history or does it need to filed as bug as new feature?

Thanks

Offline

#2 2024-11-01 21:34:41

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,508
LinuxFirefox 132.0

Re: Terminal unique recent history -- primary key on bash history

Maybe this might help.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Registered users online in this topic: 0, guests: 1
[Bot] CCBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.012 seconds, 9 queries executed - Memory usage: 522.75 KiB (Peak: 523.59 KiB) ]