svn commit: r505291 - in head/shells/git-prompt.zsh: . files
Joseph Mingrone
jrm at FreeBSD.org
Fri Jun 28 16:22:19 UTC 2019
Author: jrm
Date: Fri Jun 28 16:22:17 2019
New Revision: 505291
URL: https://svnweb.freebsd.org/changeset/ports/505291
Log:
shells/git-prompt.zsh: Add installation instructions in pkg-message
Added:
head/shells/git-prompt.zsh/files/
head/shells/git-prompt.zsh/files/pkg-message.in (contents, props changed)
Modified:
head/shells/git-prompt.zsh/Makefile (contents, props changed)
Modified: head/shells/git-prompt.zsh/Makefile
==============================================================================
--- head/shells/git-prompt.zsh/Makefile Fri Jun 28 15:54:28 2019 (r505290)
+++ head/shells/git-prompt.zsh/Makefile Fri Jun 28 16:22:17 2019 (r505291)
@@ -3,6 +3,7 @@
PORTNAME= git-prompt.zsh
DISTVERSIONPREFIX= v
DISTVERSION= 2.1.0
+PORTREVISION= 1
CATEGORIES= shells
MAINTAINER= jrm at FreeBSD.org
@@ -19,10 +20,13 @@ GH_ACCOUNT= woefe
NO_ARCH= yes
NO_BUILD= yes
-PLIST_FILES= ${DATADIR}/${PORTNAME}
+PLIST_FILES= ${DATADIR}/${PORTNAME} ${DOCSDIR}/README.md
+SUB_FILES= pkg-message
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME} ${STAGEDIR}/${DATADIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}/${DOCSDIR}
.include <bsd.port.mk>
Added: head/shells/git-prompt.zsh/files/pkg-message.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/shells/git-prompt.zsh/files/pkg-message.in Fri Jun 28 16:22:17 2019 (r505291)
@@ -0,0 +1,21 @@
+=============================================================
+
+To add the git status indicator to your prompt, source
+git-prompt.zsh in one of your Zsh startup files using
+
+source %%DATADIR%%${PORTNAME}/${PORTNAME}
+
+Next, add ' $(gitprompt)%# ' to the end of the PROMPT value
+like in the example below.
+
+PROMPT='%n@%m %~ $(gitprompt)%# '
+
+For details, refer to
+
+%%DOCSDIR%%/README.md
+
+or
+
+https://github.com/woefe/git-prompt.zsh
+
+=============================================================
More information about the svn-ports-all
mailing list