I'm just wondering if it is possible to write a Python script that runs in a shell that can provide suggestions to the user when they press Tab?
for example, how certain applications can limit the file types offered by what they support. I did not find anything in optParse that does this?
Ideally, this would be:
myScript.py [TAB] (the shell prints a list of options)
Any suggestions? In particular, using KDE under OpenSuse and tcsh
Very much appreciated
source share