Last active
September 2, 2022 21:23
Star
You must be signed in to star a gist
Patch for spaceship-prompt v4 PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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