'How to get tab-completion of alias of python -m

So python -m foo will run foo.py if its parent folder is in PYTHONPATH environment variable. Great! But python -m is much typing so i want alias pm='python -m' and i want tab-completion to work. However complete -p python -m doesn't compute. Is there a way to achieve this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source