I would like to create a bash script foo.sh.
When it runs, it will prompt for a directory. The user will be able to use tab to auto complete?
Here is some example code assuming read has some option.
echo -n "Enter the directory of awesomeness: " read --enable-autocomplete DIR_OF_AWESOMENESS echo "The Dir of Awesomeness is $DIR_OF_AWESOMENESS"