kislyuk / argcomplete

Python and tab completion, better together.
https://kislyuk.github.io/argcomplete/
Apache License 2.0
1.42k stars 135 forks source link

/etc/bash_completion.d/python-argcomplete.py should be removed on uninstall #31

Open kislyuk opened 11 years ago

kislyuk commented 11 years ago

Probably not possible in general but maybe print a message asking the user to do that manually.

AvdN commented 11 years ago

I don't find that an appropriate action, as that script was added by hand.

Programs that have "# PYTHON_ARGCOMPLETE_OK" should handle a failing "import argcomplete" gracefully (I will provide an example for the documentation).

agraubert commented 7 years ago

At least provide a deactivate-global-python-argcomplete script to take care of remaining cleanup tasks. I was surprised to find that after uninstalling, argcomplete was still lingering around and that I had to manually remove it.

evanunderscore commented 7 years ago

A deactivate script would have a hard time knowing where you told it to install. Perhaps the activate script should print a message about what it did and what your responsibility is if you wish to undo it.