Assigning materials via command line. wish: Autocomplete names plz!

it would be amazing if the command-prompt could autocomplete with the existing material list at this point:

image

I am looking for quickest material assignment while avoiding the GUI.