shells/git-prompt.zsh: Add installation instructions in pkg-message

This commit is contained in:
Joseph Mingrone 2019-06-28 16:22:17 +00:00
parent 4214032798
commit c6f131c3c0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=505291
2 changed files with 26 additions and 1 deletions

View file

@ -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>

View file

@ -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
=============================================================