Been trying to do this for a while to no avail. http://stackoverflow.com/questions/4726695/bash-and-readline-tab-completion-in-a-user-input-loop