Open ghost opened 10 years ago
+1
It would be nice to merge these versions: while oh-my-zsh's version has support for package names (a very inportant feature), it is missing pip commands like "show".
Any news on this?
as far as I checked, pip has upstream completion now.
(can be generated by pip/runner.py completion --zsh
)
So, I'd remove it now, as repository rules suggests.
pip's own completion appears to be not that sophisticated.
E.g. it does not complete files after pip install -r
, has no description for the commands etc.
Maybe pip's completion should then get merged with the previous one from zsh-completions and oh-my-zsh's then.
Probably. But that is definitely pip's upstream issue (you can point them on https://github.com/zsh-users/zsh-completions/blob/b91db13f5cf50ef3a303c6926c84bfb37aab6c85/src/_pip (as part of this repo) and to o-m-z version, and ask them to fetch it and adopt) ;)
Although, I bet they'll say "patches are welcomed" ;)
I've gave it a shot today: https://gist.github.com/blueyed/54a257c411310a28805a
Will probably create a repo for it in the next days / weeks, and ask for inclusion in pip or zsh.
Reopening as the upstream pip completion is bad, and @blueyed's one seems a lot better (even though PyPI's XMLRPC API seems to be dead, so it needs update)
@blueyed Did you create a repo for this?
Relevant page
https://www.zsh.org/mla/workers/2015/msg00852.html 【 ask for the feature at 2015】 https://github.com/zsh-users/zsh-completions/commit/890f3701 【out dated】 https://gist.github.com/blueyed/54a257c411310a28805a 【Waiting for update, but no news so far】
In my zshrc :
antigen use oh-my-zsh
antigen bundle pip
Nothing happen when I press tab
after tensorboard --
Any solution? Thx
May be we could adopt oh-my-zsh's version.
https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins/pip