From 557d2b9c9797747d97134e0a709242edc74f48dd Mon Sep 17 00:00:00 2001 From: Aroun Date: Thu, 12 Oct 2023 05:31:41 +0530 Subject: [PATCH] add: `zsh-history-substring-search-git` (#4652) Co-authored-by: Elsie --- packagelist | 1 + .../zsh-history-substring-search-git.pacscript | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100755 packages/zsh-history-substring-search-git/zsh-history-substring-search-git.pacscript diff --git a/packagelist b/packagelist index fa064e7eef..4214d61e4c 100644 --- a/packagelist +++ b/packagelist @@ -465,3 +465,4 @@ zoho-notebook-deb zoom-deb zotero zoxide-deb +zsh-history-substring-search-git diff --git a/packages/zsh-history-substring-search-git/zsh-history-substring-search-git.pacscript b/packages/zsh-history-substring-search-git/zsh-history-substring-search-git.pacscript new file mode 100755 index 0000000000..771ee7298b --- /dev/null +++ b/packages/zsh-history-substring-search-git/zsh-history-substring-search-git.pacscript @@ -0,0 +1,18 @@ +name="zsh-history-substring-search-git" +pkgname="zsh-history-substring-search" +url="https://github.com/zsh-users/zsh-history-substring-search.git" +pkgver="1.1.0" +depends=("zsh") +breaks=("${pkgname}") +replace=("${pkgname}") +gives=("${pkgname}") +pkgdesc="ZSH port of Fish history search (up arrow)" +maintainer="Zahrun " +pkgver() { + git ls-remote "${url}" refs/heads/master | cut -f1 | cut -c1-8 +} + +package() { + sudo install -d "${pkgdir}/usr/share/zsh/plugins/zsh-history-substring-search" + sudo install -m 755 ./*.zsh -t "${pkgdir}/usr/share/zsh/plugins/zsh-history-substring-search" +}