git: 39e216277c6f - main - shells/zsh-you-should-use: Add new port

From: Lars Engels <lme_at_FreeBSD.org>
Date: Thu, 13 Feb 2025 17:50:42 UTC
The branch main has been updated by lme:

URL: https://cgit.FreeBSD.org/ports/commit/?id=39e216277c6f8361ac95b8892e79f8b840d6d9e4

commit 39e216277c6f8361ac95b8892e79f8b840d6d9e4
Author:     Son Phan Trung <phantrungson17@gmail.com>
AuthorDate: 2025-02-13 17:41:32 +0000
Commit:     Lars Engels <lme@FreeBSD.org>
CommitDate: 2025-02-13 17:48:37 +0000

    shells/zsh-you-should-use: Add new port
    
    Zsh-you-should-use reminds the user about the alias for a command
    one just typed. Supports detection of global and git alias.
    
    WWW:            https://github.com/MichaelAquilina/zsh-you-should-use
    
    PR:             277051
---
 shells/Makefile                                |  1 +
 shells/zsh-you-should-use/Makefile             | 27 ++++++++++++++++++++++++++
 shells/zsh-you-should-use/distinfo             |  3 +++
 shells/zsh-you-should-use/files/pkg-message.in |  9 +++++++++
 shells/zsh-you-should-use/pkg-descr            |  2 ++
 5 files changed, 42 insertions(+)

diff --git a/shells/Makefile b/shells/Makefile
index 45056e4ea190..aad04461265f 100644
--- a/shells/Makefile
+++ b/shells/Makefile
@@ -75,5 +75,6 @@
     SUBDIR += zsh-fast-syntax-highlighting
     SUBDIR += zsh-navigation-tools
     SUBDIR += zsh-syntax-highlighting
+    SUBDIR += zsh-you-should-use
 
 .include <bsd.port.subdir.mk>
diff --git a/shells/zsh-you-should-use/Makefile b/shells/zsh-you-should-use/Makefile
new file mode 100644
index 000000000000..d8dc5d314849
--- /dev/null
+++ b/shells/zsh-you-should-use/Makefile
@@ -0,0 +1,27 @@
+PORTNAME=	zsh-you-should-use
+DISTVERSION=	1.7.3
+CATEGORIES=	shells
+
+MAINTAINER=	phantrungson17@gmail.com
+COMMENT=	ZSH plugin reminding you to use aliases for commands you typed
+WWW=		https://github.com/MichaelAquilina/zsh-you-should-use
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	zsh>=4.3:shells/zsh
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	MichaelAquilina
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+SUB_FILES=	pkg-message
+
+PLIST_FILES=	${DATADIR}/you-should-use.plugin.zsh
+
+do-install:
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/you-should-use.plugin.zsh ${STAGEDIR}/${DATADIR}
+
+.include <bsd.port.mk>
diff --git a/shells/zsh-you-should-use/distinfo b/shells/zsh-you-should-use/distinfo
new file mode 100644
index 000000000000..b367085edc39
--- /dev/null
+++ b/shells/zsh-you-should-use/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1707909230
+SHA256 (MichaelAquilina-zsh-you-should-use-1.7.3_GH0.tar.gz) = db4486cd12974332ec858d446aff9393dae6be430d425a56d7036d2ce4edeb9e
+SIZE (MichaelAquilina-zsh-you-should-use-1.7.3_GH0.tar.gz) = 106229
diff --git a/shells/zsh-you-should-use/files/pkg-message.in b/shells/zsh-you-should-use/files/pkg-message.in
new file mode 100644
index 000000000000..15abcf358063
--- /dev/null
+++ b/shells/zsh-you-should-use/files/pkg-message.in
@@ -0,0 +1,9 @@
+[
+{ type: install
+  message: <<EOM
+Add the line below to your .zshrc to enable auto suggestions.
+
+source %%DATADIR%%/you-should-use.plugin.zsh
+EOM
+}
+]
diff --git a/shells/zsh-you-should-use/pkg-descr b/shells/zsh-you-should-use/pkg-descr
new file mode 100644
index 000000000000..1784d9a0f131
--- /dev/null
+++ b/shells/zsh-you-should-use/pkg-descr
@@ -0,0 +1,2 @@
+Zsh-you-should-use reminds the user about the alias for a command
+one just typed. Supports detection of global and git alias.