abinfo "Installing shell completions ..."

mkdir -pv "$PKGDIR"/usr/share/bash-completion/completions/
mkdir -pv "$PKGDIR"/usr/share/fish/vendor_completions.d/
mkdir -pv "$PKGDIR"/usr/share/zsh/site-functions/

"$SRCDIR"/target/release/pixi completion --shell bash > "$PKGDIR"/usr/share/bash-completion/completions/pixi.bash
"$SRCDIR"/target/release/pixi completion --shell fish > "$PKGDIR"/usr/share/fish/vendor_completions.d/pixi.fish
"$SRCDIR"/target/release/pixi completion --shell zsh > "$PKGDIR"/usr/share/zsh/site-functions/_pixi
