But you already have that, it's standard Linux/Unix. Assuming the bash shell, in your example, insteat of "mou tab" try typing "!mou". (without the double quotes, of course)
I suggest that konsole modified to be backward predictive when typing commands in. What this means is that you can simply type maybe the first 2 letters of a previous command typed in the same session and simple press the <tab> reveiling all possibilities. Example:
>> mount -w /dev/hdd1 /mnt/gamedrive
after multiple commands being entered then simply type the following:
>> mou <tab> and console would load the command above!
This function is the core of simplicity for those who have programmed in MATLAB, it realy makes things easy
Mduduzi
But you already have that, it's standard Linux/Unix. Assuming the bash shell, in your example, insteat of "mou tab" try typing "!mou". (without the double quotes, of course)
I'm doing something similar by adding the following two lines to the '/etc/profile' file:Originally Posted by mduduzi
bind '"\e[A"':history-search-backward
bind '"\e[B"':history-search-forward
Now after typing some charts you can scroll up ad down the history with up and down arrows keys.
I haven't tried the script you have provided above but i tried the usage of "!" before the command i want to run. But this only runs the previous command which is not what i want. It would be great if this "!" gave you a list of the previous commands which it displays them in a list which i can chose by means of numerical numbers
I will try the script provided above and report feedback
if you type the command
fc -l
bash will list the previous 16 commands with a number in front of each one
Then if you want to run the command numbered 11, say, then just enter
!11
If you want a list of the previous 20 commands instead of just 16 then type
fc -l -20
The auto completion that is enabled when you press Cntl-R might be close to what you want.

IBM System X3850-X5 Server w/4x Intel Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD
$1599.99
IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5" Bay Server No RAM
$179.99
DELL POWEREDGE HP IBM SERVER XEON GOLD 5315Y 8 CORE PROCESSOR 3.2 GHZ SRKXR
$1100.00
IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon E5620
$199.99
IBM X3650 M5 5462-AC1,2 X E5-2640V3 2.6GHZ 8C, 16 GB, DUAL 750W, 2 X 1TB SERVER
$349.99
IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES
$111.70
IBM System x3550 M3 1U Server 2x Xeon E5645, 192GB RAM, 2x 300GB HDD (7944-AC1)
$150.00
2 -IBM 16GB 2GX72 00VK248 CDIMM Server Memory DDR4 LOT OF 2 32GB TOTAL
$79.95
IBM X3650 M4 Server System Board 00MX553 00AM209 00Y8499 00Y8457 00D2888 00W2671
$230.00
IBM System x3755 M3 2U Rackmount Server – No Drives or Trays
$150.00