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.
Seagate ST8000NM0055 8TB 7200RPM 256MB SATA 6.0 Gb/s 3.5" Enterprise Hard Drive
$41.62
HITACHI HUS724040ALA640 4TB 7200RPM 64MB SATA 6.0Gb/s 3.5" HARD DRIVE ZERO HOURS
$52.00
HGST Ultrastar DC HC520 HUH721212ALE601 12TB SATA 6Gb 256MB 3.5" Enterprise HDD
$82.99
Seagate ST8000NM0045 8TB 7.2k SATA 6Gbps 3.5" 4Kn Format Hard Drive Open Box New
$84.99
HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5" Enterprise HDD- HUH721212ALE601
$82.99
HGST Ultrastar HE10 10TB SATA 6.0Gb/s 7200 3.5" Datacenter HDD - HUH721010ALE601
$79.99
Seagate ST12000NM0127 12TB 256MB 7200RPM 3.5" SATA 6.0Gb/s Enterprise Hard Drive
$87.99
WD Ultrastar DC HC530 14TB SATA 6G 3.5" 7200RPM Enterprise HDD - WUH721414ALE604
$110.00
WD 5TB Certified Refurbished Elements, External Hard Drive - RWDBU6Y0050BBK-WESN
$78.99
Seagate ST12000NM0127 12TB SATA 6Gb/s 256MB 7200RPM 3.5" Enterprise Hard Drive
$99.99