kislyuk/argcomplete — pull request #6 by nickl- (2012-12-08 05:35:34+00:00)
Title: Force fed some dog food =)

As per #5 I think it is more than fair to expect argcomplete to eat its own dog food would you agree?

This still requires manually editing to include `PYTHON_ARGCOMPLETE_OK` to the easy install stubs which bash finds in the command path as mentioned in #4

```python
#!/usr/bin/python
# EASY-INSTALL-SCRIPT: 'argcomplete==0.2.7','register-python-argcomplete'
# PYTHON_ARGCOMPLETE_OK
__requires__ = 'argcomplete==0.2.7'
import pkg_resources
pkg_resources.run_script('argcomplete==0.2.7', 'register-python-argcomplete')
```
`/usr/local/bin/register-python-argcomplete lines 1-6 515 bytes `

and

```python
#!/usr/bin/python
# EASY-INSTALL-SCRIPT: 'argcomplete==0.2.7','activate-global-python-argcomplete'
# PYTHON_ARGCOMPLETE_OK
__requires__ = 'argcomplete==0.2.7'
import pkg_resources
pkg_resources.run_script('argcomplete==0.2.7', 'activate-global-python-argcomplete')
```
`/usr/local/bin/activate-global-python-argcomplete lines 1-6 529 bytes `

Making these changes manually will see the completion working as expected. Now to find a way to have this done on installation.

Tab completion for `/usr/local/bin/activate-global-python-argcomplete`

```shell
$ activate-global-python-argcomplete -
--dest --help --user -h
$ activate-global-python-argcomplete -
```

nJoy!