FS#58310 - [python-pipenv] out-of-box zsh completion?
Attached to Project:
Community Packages
Opened by lilydjwg (lilydjwg) - Monday, 23 April 2018, 07:01 GMT
Last edited by Eli Schwartz (eschwartz) - Wednesday, 25 April 2018, 13:58 GMT
Opened by lilydjwg (lilydjwg) - Monday, 23 April 2018, 07:01 GMT
Last edited by Eli Schwartz (eschwartz) - Wednesday, 25 April 2018, 13:58 GMT
|
Details
Description:
Can you generate a /usr/share/zsh/site-functions/_pipenv file so that zsh completion works out-of-box? This will also speed up zsh startup very significantly than configured by running "pipenv --completion" every time (it took me over 1.5s every time, with a SSD. It still completes slowly, but will not hurt zsh when the user isn't using it.) Additional info: * package version(s) * config and/or log files etc. python-pipenv 11.10.0-1 |
This task depends upon
Closed by Eli Schwartz (eschwartz)
Wednesday, 25 April 2018, 13:58 GMT
Reason for closing: Implemented
Additional comments about closing: python-pipenv 11.10.0-2
Wednesday, 25 April 2018, 13:58 GMT
Reason for closing: Implemented
Additional comments about closing: python-pipenv 11.10.0-2
The completion file looks like this:
```
#compdef pipenv
_pipenv() {
eval $(env COMMANDLINE="${words[1,$CURRENT]}" _PIPENV_COMPLETE=complete-zsh pipenv)
}
if [[ "$(basename ${(%):-%x})" != "_pipenv" ]]; then
autoload -U compinit && compinit
compdef _pipenv pipenv
fi
```
So it's still going to run pipenv every time you try tab-completing...