Created
November 5, 2021 03:05
-
-
Save Self-Perfection/97331cff9cace2fe8de674a77d1e46b3 to your computer and use it in GitHub Desktop.
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
From 7235738aec58b147fee034781f3e3cdbe8374304 Mon Sep 17 00:00:00 2001 | |
From: Self-Perfection <Self-Perfection@users.noreply.github.com> | |
Date: Fri, 5 Nov 2021 05:59:23 +0300 | |
Subject: [PATCH] Install completions for bash zsh and fish | |
I've tested bash completion but not the others. | |
--- | |
PKGBUILD | 11 ++++++++++- | |
1 file changed, 10 insertions(+), 1 deletion(-) | |
diff --git a/PKGBUILD b/PKGBUILD | |
index 42838ab..0bfb8bb 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -3,7 +3,7 @@ | |
pkgname=spotify-tui | |
pkgver=0.25.0 | |
-pkgrel=1 | |
+pkgrel=2 | |
pkgdesc='Spotify client for the terminal written in Rust' | |
arch=(x86_64) | |
url=https://github.com/Rigellute/spotify-tui | |
@@ -25,4 +25,13 @@ package() { | |
install -D target/release/spt -t "$pkgdir"/usr/bin | |
install -Dm 644 README.md -t "$pkgdir"/usr/share/doc/$pkgname | |
install -Dm 644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname | |
+ | |
+ target/release/spt --completions bash > target/release/spt-completion.bash | |
+ install -Dm 644 target/release/spt-completion.bash "$pkgdir"/usr/share/bash-completion/completions/spt | |
+ | |
+ target/release/spt --completions zsh > target/release/spt-completion.zsh | |
+ install -Dm 644 target/release/spt-completion.zsh "$pkgdir"/usr/share/zsh/vendor-completions/_spt | |
+ | |
+ target/release/spt --completions fish > target/release/spt-completion.fish | |
+ install -Dm 644 target/release/spt-completion.fish "$pkgdir"/usr/share/fish/vendor_completions.d/spt.fish | |
} | |
-- | |
2.33.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment