pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

starship: Install shell completions for bash, fish, zsh



Module Name:	pkgsrc-wip
Committed By:	Michael-John Turner <mj%mjturner.net@localhost>
Pushed By:	mj
Date:		Fri Jul 9 10:28:26 2021 +0100
Changeset:	5d4a725a78e628b3a3df9d137b8bbc7e242d435e

Modified Files:
	starship/Makefile
	starship/PLIST

Log Message:
starship: Install shell completions for bash, fish, zsh

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5d4a725a78e628b3a3df9d137b8bbc7e242d435e

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 starship/Makefile | 5 +++++
 starship/PLIST    | 3 +++
 2 files changed, 8 insertions(+)

diffs:
diff --git a/starship/Makefile b/starship/Makefile
index 0c39d633b5..ceb936437e 100644
--- a/starship/Makefile
+++ b/starship/Makefile
@@ -32,9 +32,14 @@ CARGO_FEATURES+=	battery
 .include "cargo-depends.mk"
 
 INSTALLATION_DIRS=	bin
+EGDIR=			${PREFIX}/share/examples/starship/auto-completion
 
 do-install:
+	${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
 	${INSTALL_PROGRAM} ${WRKSRC}/target/release/starship ${DESTDIR}${PREFIX}/bin
+	${WRKSRC}/target/release/starship completions bash > ${DESTDIR}${EGDIR}/starship.bash
+	${WRKSRC}/target/release/starship completions fish > ${DESTDIR}${EGDIR}/starship.fish
+	${WRKSRC}/target/release/starship completions zsh > ${DESTDIR}${EGDIR}/_starship
 
 DEPENDS+=		git-base-[0-9]*:../../devel/git-base
 
diff --git a/starship/PLIST b/starship/PLIST
index 4cf1da5d69..23ee2a3894 100644
--- a/starship/PLIST
+++ b/starship/PLIST
@@ -1,2 +1,5 @@
 @comment $NetBSD$
 bin/starship
+share/examples/starship/auto-completion/_starship
+share/examples/starship/auto-completion/starship.bash
+share/examples/starship/auto-completion/starship.fish


Home | Main Index | Thread Index | Old Index