I am on OS X Mavericks running a python script that requires a filename as command line argument like this
python name_of_my_script -i /path/to/input_file/file_name
Navigating to the directory containing the input file works by using tab completion in the shell. However, as I reach the right directory hitting TAB does not provide a list of files in the folder such that I could choose the right input file for the script. Also typing the first letters or two does not solve the problem. Hence, I am left with typing the name of the file by hand which is troublesome and causes a lot of errors.
The same error occurs with tab completion for example in git or pip but the python problem is the most crucial to me. Any help regarding this topic is highly appreciated.