It's not quite autocomplete but on the ROS2 course on O'Reilly, the instructor types part of the command, presses Enter and the terminal shows any and all commands for which what has been typed before pressing Enter is a substring of the actual command.
Here is an example
cd /usr/share/col
gets him several that start like that and among them he chooses to type in
cd /usr/share/colcon_argcomplete...
... because he types in the subdirectory after that
How do I get this functionality on my terminal?
