From 136248d6515ee937f9f73d7e24a828b8569aa8a6 Mon Sep 17 00:00:00 2001 From: ShokiNN Date: Fri, 3 Jan 2020 23:04:21 +0100 Subject: [PATCH] Add pipx completions to zsh if installed --- dotfiles/zshrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dotfiles/zshrc b/dotfiles/zshrc index e5a50e8..d33c47c 100644 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -117,6 +117,13 @@ source $ZSH/oh-my-zsh.sh # alias ohmyzsh="mate ~/.oh-my-zsh" alias dotdrop='eval $(grep -v "^#" ~/.files/.env.public) ~/.files/dotdrop.sh' +# Enable pipx completions +if [ -f "$HOME/.local/bin/pipx" ]; then + autoload -U bashcompinit + bashcompinit + eval "$(register-python-argcomplete pipx)" +fi + # Funktions (or more complex aliasses) wttr() { if [ -z "$1" ]; then