If you are a Linux system administrator and you don't know about Fabric  yet, I'll suggest you to have a look to this Python library which will help you with your daily systems administration tasks and to deploy your applications.
To install it just save the script as /etc/bash_completion.d/fab.
Let's say that in our
fabfile.py script we have defined the following tasks:
$ fab --list Available commands: commit deploy push test
Now source the bash completion script to test it:
$ . /etc/bash_completion.d/fab
and use the
[TAB] key to complete the task name:
$ fab [TAB][TAB] commit deploy push test