[arch-commits] Commit in bat/trunk (PKGBUILD)
George Rawlinson
grawlinson at gemini.archlinux.org
Mon Jul 11 09:39:13 UTC 2022
Date: Monday, July 11, 2022 @ 09:39:12
Author: grawlinson
Revision: 1249538
upgpkg: bat 0.21-2
* FS#75248 - add shell completion for bash
Modified:
bat/trunk/PKGBUILD
----------+
PKGBUILD | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-07-11 09:16:55 UTC (rev 1249537)
+++ PKGBUILD 2022-07-11 09:39:12 UTC (rev 1249538)
@@ -3,7 +3,7 @@
pkgname=bat
pkgver=0.21.0
-pkgrel=1
+pkgrel=2
pkgdesc='Cat clone with syntax highlighting and git integration'
arch=(x86_64)
url='https://github.com/sharkdp/bat'
@@ -48,6 +48,10 @@
find . -name bat.1 -type f -exec install -Dm644 {} \
"$pkgdir/usr/share/man/man1/bat.1" \;
+ # Find and package the bash completion file
+ find . -name bat.bash -type f -exec install -Dm644 {} \
+ "$pkgdir/usr/share/bash-completion/completions/bat" \;
+
# Find and package the zsh completion file (not in zsh-completions yet)
find . -name bat.zsh -type f -exec install -Dm644 {} \
"$pkgdir/usr/share/zsh/site-functions/_bat" \;
More information about the arch-commits
mailing list