mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-02-16 14:20:59 +01:00
Add a basic plugin for pipx
This commit is contained in:
13
plugins/pipx/README.md
Normal file
13
plugins/pipx/README.md
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# pipx
|
||||||
|
|
||||||
|
[`pipx`](https://pipxproject.github.io/pipx/) - Install and Run Python Applications in Isolated Environments
|
||||||
|
|
||||||
|
To use it, add `pipx` to the plugins array in your zshrc file:
|
||||||
|
|
||||||
|
```zsh
|
||||||
|
plugins=(... pipx)
|
||||||
|
```
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
Please find detailed installation guide [`here`](https://pipxproject.github.io/pipx/installation/)
|
||||||
8
plugins/pipx/pipx.plugin.zsh
Normal file
8
plugins/pipx/pipx.plugin.zsh
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# check if pipx is installed
|
||||||
|
if (( ! ${+commands[pipx]} )); then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
autoload -U bashcompinit
|
||||||
|
bashcompinit
|
||||||
|
eval "$(register-python-argcomplete pipx)"
|
||||||
Reference in New Issue
Block a user