Add bash completion helper function
In reference to:
dojo_project/issues#83 (closed)