From 2687d69c4694425f054ca416f80f938e9c5656c1 Mon Sep 17 00:00:00 2001 From: Cristian Magherusan-Stanciu Date: Tue, 8 Sep 2020 19:15:21 +0200 Subject: [PATCH] Add a basic plugin for pipx --- plugins/pipx/README.md | 13 +++++++++++++ plugins/pipx/pipx.plugin.zsh | 8 ++++++++ 2 files changed, 21 insertions(+) create mode 100644 plugins/pipx/README.md create mode 100644 plugins/pipx/pipx.plugin.zsh diff --git a/plugins/pipx/README.md b/plugins/pipx/README.md new file mode 100644 index 000000000..4a012f3dc --- /dev/null +++ b/plugins/pipx/README.md @@ -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/) diff --git a/plugins/pipx/pipx.plugin.zsh b/plugins/pipx/pipx.plugin.zsh new file mode 100644 index 000000000..bcc6b2535 --- /dev/null +++ b/plugins/pipx/pipx.plugin.zsh @@ -0,0 +1,8 @@ +# check if pipx is installed +if (( ! ${+commands[pipx]} )); then + return +fi + +autoload -U bashcompinit +bashcompinit +eval "$(register-python-argcomplete pipx)" \ No newline at end of file