From 5bf71a6189674afd290f33fe9ddd5bb32fae2a64 Mon Sep 17 00:00:00 2001 From: Son Phan Trung Date: Wed, 14 Feb 2024 20:09:02 +0700 Subject: [PATCH] shells/zsh-fast-syntax-highlighting: Optimized and extended zsh-syntax-highlighting Zsh-fast-syntax-highlighting enables highlighting of commands whilst they are typed at an interactive zsh prompt. This helps in reviewing commands before running them, particularly in catching syntax errors. Compared to zsh-syntax-highlighting, this package is more optimized and feature-rich. WWW: https://github.com/zdharma-continuum/fast-syntax-highlighting --- shells/Makefile | 1 + shells/zsh-fast-syntax-highlighting/Makefile | 28 ++++++ shells/zsh-fast-syntax-highlighting/distinfo | 3 + .../files/pkg-message.in | 9 ++ shells/zsh-fast-syntax-highlighting/pkg-descr | 5 + shells/zsh-fast-syntax-highlighting/pkg-plist | 91 +++++++++++++++++++ 6 files changed, 137 insertions(+) create mode 100644 shells/zsh-fast-syntax-highlighting/Makefile create mode 100644 shells/zsh-fast-syntax-highlighting/distinfo create mode 100644 shells/zsh-fast-syntax-highlighting/files/pkg-message.in create mode 100644 shells/zsh-fast-syntax-highlighting/pkg-descr create mode 100644 shells/zsh-fast-syntax-highlighting/pkg-plist diff --git a/shells/Makefile b/shells/Makefile index a825aa8be741..45056e4ea190 100644 --- a/shells/Makefile +++ b/shells/Makefile @@ -72,6 +72,7 @@ SUBDIR += zsh-antigen SUBDIR += zsh-autosuggestions SUBDIR += zsh-completions + SUBDIR += zsh-fast-syntax-highlighting SUBDIR += zsh-navigation-tools SUBDIR += zsh-syntax-highlighting diff --git a/shells/zsh-fast-syntax-highlighting/Makefile b/shells/zsh-fast-syntax-highlighting/Makefile new file mode 100644 index 000000000000..accfc1893b83 --- /dev/null +++ b/shells/zsh-fast-syntax-highlighting/Makefile @@ -0,0 +1,28 @@ +PORTNAME= zsh-fast-syntax-highlighting +DISTVERSIONPREFIX= v +DISTVERSION= 1.55 +CATEGORIES= shells + +MAINTAINER= phantrungson17@gmail.com +COMMENT= Optimized and extended zsh-syntax-highlighting +WWW= https://github.com/zdharma-continuum/fast-syntax-highlighting + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= zsh>=5.4:shells/zsh + +USE_GITHUB= yes +GH_ACCOUNT= zdharma-continuum +GH_PROJECT= fast-syntax-highlighting + +NO_ARCH= yes +NO_BUILD= yes + +SUB_FILES= pkg-message + +do-install: + @${MKDIR} ${STAGEDIR}${DATADIR} + cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} "! -path \./\.* ! -name *\.bak ! -name *\.orig" + +.include diff --git a/shells/zsh-fast-syntax-highlighting/distinfo b/shells/zsh-fast-syntax-highlighting/distinfo new file mode 100644 index 000000000000..be66e173dd14 --- /dev/null +++ b/shells/zsh-fast-syntax-highlighting/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1707906686 +SHA256 (zdharma-continuum-fast-syntax-highlighting-v1.55_GH0.tar.gz) = d06cea9c047ce46ad09ffd01a8489a849fc65b8b6310bd08f8bcec9d6f81a898 +SIZE (zdharma-continuum-fast-syntax-highlighting-v1.55_GH0.tar.gz) = 615290 diff --git a/shells/zsh-fast-syntax-highlighting/files/pkg-message.in b/shells/zsh-fast-syntax-highlighting/files/pkg-message.in new file mode 100644 index 000000000000..da4b6b7f7bfa --- /dev/null +++ b/shells/zsh-fast-syntax-highlighting/files/pkg-message.in @@ -0,0 +1,9 @@ +[ +{ type: install + message: <