George Hu pushed to branch main at Arch Linux / Packaging / Packages / yazi
Commits:
70c08c50 by George Hu at 2026-01-04T14:57:43+08:00
Install shell completions for `ya` binary
- - - - -
1 changed file:
- PKGBUILD
Changes:
=====================================
PKGBUILD
=====================================
@@ -61,11 +61,17 @@ package() {
magick assets/logo.png -resize "${r}x${r}"
"$pkgdir/usr/share/icons/hicolor/${r}x${r}/apps/yazi.png"
done
- cd "$pkgname-boot/completions"
- install -Dm644 "$pkgname.bash"
"$pkgdir/usr/share/bash-completion/completions/$pkgname"
- install -Dm644 "$pkgname.fish" -t
"$pkgdir/usr/share/fish/vendor_completions.d/"
- install -Dm644 "_$pkgname" -t "$pkgdir/usr/share/zsh/site-functions/"
- install -Dm644 "$pkgname.elv" -t "$pkgdir/usr/share/elvish/lib/"
+ _install_completions $pkgname-boot $pkgname
+ _install_completions $pkgname-cli ya
+}
+
+_install_completions() {
+ pushd "$1/completions"
+ install -Dm644 "$2.bash" "$pkgdir/usr/share/bash-completion/completions/$2"
+ install -Dm644 "$2.fish" -t "$pkgdir/usr/share/fish/vendor_completions.d/"
+ install -Dm644 "_$2" -t "$pkgdir/usr/share/zsh/site-functions/"
+ install -Dm644 "$2.elv" -t "$pkgdir/usr/share/elvish/lib/"
+ popd
}
# vim: ts=2 sw=2 et:
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/yazi/-/commit/70c08c50f0ded45ecde6d3c705ee6b06568b9e31
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/yazi/-/commit/70c08c50f0ded45ecde6d3c705ee6b06568b9e31
You're receiving this email because of your account on gitlab.archlinux.org.