Soapm wrote:My command line already remembers commands using page up and down, I'm just looking to have it enter the last portion of the command. Just the part with the options since I have to manually enter ffmpeg -i filename.mp3. I just want it to add this to the end;
- Code: Select all
-af "volumedetect" -vn -sn -dn -f null /dev/null
Yup, i was aware that in your case it is not that helpful. Use autocomplete command from history via page-up, but then you have to edit that command.
That's why i said the proposed usage of a function is the better solution for your problem (#bash proposes to always use functions instead of aliases, but i don't really understand the reasoning).
I only mentioned it because i thought you wouldn't know it at all . And it saves a lot of typing in the long run. I hardly type more than the beginning of my usual commands and oneliners.
If you could put "-i filename" at the end", then it would work comfortable too, of course ("ffm", page-up, remove filename and insert other filename, hit enter).