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.
Western Digital 1TB WD Blue PC Desktop 3.5'' Internal CMR Hard Drive - WD10EARZ
$44.99
Western Digital 1TB WD Blue SA510 SATA SSD Internal 2.5”/7mm Cased - WDS100T3B0A
$89.99
SanDisk 1TB Extreme Portable SSD, External Solid State Drive - SDSSDE61-1T00-G25
$109.99
Dell EMC - Intel DC P4510 SSDPE2KX010T8T 1TB U.2 PCIe NVMe 3.1 SSD 008MW
$98.99
2 PACK Seagate ST1000LM035 Mobile HDD 1TB 2.5" SATA III Laptop Hard Drive
$27.25
Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot
$19.99
Samsung - Geek Squad Certified Refurbished 870 EVO 1TB SATA Solid State Drive
$67.99
1 TB SATA 2.5" Laptop hard drive- Used - Mixed RPM- Tested - Mix Brands/Models
$12.00
Apple 1TB Solid State Drive for Apple MacBook Pro
$80.00
1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot
$80.39