Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jun 2019 16:22:17 +0000 (UTC)
From:      Joseph Mingrone <jrm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r505291 - in head/shells/git-prompt.zsh: . files
Message-ID:  <201906281622.x5SGMHuQ069722@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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
+
+=============================================================



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906281622.x5SGMHuQ069722>