Skip to content

Instantly share code, notes, and snippets.

@gabrielmldantas
Last active September 2, 2022 21:23
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save gabrielmldantas/66f0c738a3f248fbf6b7f672bdfef671 to your computer and use it in GitHub Desktop.
Patch for spaceship-prompt v4 PKGBUILD
diff --git a/PKGBUILD b/PKGBUILD
index 73783e2..c61c00a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -24,7 +24,7 @@ pkgver() {
cd "$_pkgname"
(
set -o pipefail
- git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
+ git describe --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
@@ -40,6 +40,7 @@ package() {
find scripts -type f -exec install -D -m644 {} "${pkgdir}/usr/lib/${_pkgname}/{}" \;
find sections -type f -exec install -D -m644 {} "${pkgdir}/usr/lib/${_pkgname}/{}" \;
install -D -m644 spaceship.zsh "${pkgdir}/usr/lib/${_pkgname}/spaceship.zsh"
+ install -D -m644 async.zsh "${pkgdir}/usr/lib/${_pkgname}/async.zsh"
ln -s spaceship.zsh "${pkgdir}/usr/lib/${_pkgname}/spaceship.zsh-theme"
install -d "${pkgdir}/usr/local/share/zsh/site-functions/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment