mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-26 21:51:05 +01:00
Add a basic plugin for pipx
This commit is contained in:
parent
708ea42384
commit
2687d69c46
2 changed files with 21 additions and 0 deletions
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)"
|
Loading…
Reference in a new issue