aboutsummaryrefslogtreecommitdiff
path: root/shells/git-prompt.zsh
diff options
context:
space:
mode:
authorJoseph Mingrone <jrm@FreeBSD.org>2019-06-28 16:22:17 +0000
committerJoseph Mingrone <jrm@FreeBSD.org>2019-06-28 16:22:17 +0000
commitc6f131c3c0923676249f3cf40c4f97283d70122f (patch)
treee487969b80f9620fb445fe82cb4399c75c60d00c /shells/git-prompt.zsh
parent421403279892a8519b2534bf91f696700c86a543 (diff)
downloadports-c6f131c3c0923676249f3cf40c4f97283d70122f.tar.gz
ports-c6f131c3c0923676249f3cf40c4f97283d70122f.zip
Notes
Diffstat (limited to 'shells/git-prompt.zsh')
-rw-r--r--shells/git-prompt.zsh/Makefile6
-rw-r--r--shells/git-prompt.zsh/files/pkg-message.in21
2 files changed, 26 insertions, 1 deletions
diff --git a/shells/git-prompt.zsh/Makefile b/shells/git-prompt.zsh/Makefile
index 07d12bc4cd10..fc664d97af4e 100644
--- a/shells/git-prompt.zsh/Makefile
+++ b/shells/git-prompt.zsh/Makefile
@@ -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>
diff --git a/shells/git-prompt.zsh/files/pkg-message.in b/shells/git-prompt.zsh/files/pkg-message.in
new file mode 100644
index 000000000000..bb5b4e1eff52
--- /dev/null
+++ b/shells/git-prompt.zsh/files/pkg-message.in
@@ -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
+
+=============================================================