Add pipx completions to zsh if installed

This commit is contained in:
Philip Henning 2020-01-03 23:04:21 +01:00
parent 7681cba60a
commit 136248d651

View file

@ -117,6 +117,13 @@ source $ZSH/oh-my-zsh.sh
# alias ohmyzsh="mate ~/.oh-my-zsh" # alias ohmyzsh="mate ~/.oh-my-zsh"
alias dotdrop='eval $(grep -v "^#" ~/.files/.env.public) ~/.files/dotdrop.sh' 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) # Funktions (or more complex aliasses)
wttr() { wttr() {
if [ -z "$1" ]; then if [ -z "$1" ]; then