Imagine I have a bash session in a terminal, just after some output:
$ grep foo *.txt this.txt: something123 foo $
After this grep, let's say that my next command will take
something123 as an argument.
Are there any tools that will allow me to tab/auto-complete the
something123 at the prompt? i.e. autocomplete reading from the recent terminal buffer?
Specifically: I want to be able to type
grep at the prompt, a few characters of
something123 and the rest of
something123 appear, just as it would if e.g.
something123 were a name of a file in the current working directory.
Edit: I am currently using xfce4's terminal (on Arch Linux), but am open to others!