From 52ee6ff68ca357b277cecaaee3fcad33c69d8b0e Mon Sep 17 00:00:00 2001 From: "Ronny (tastytea) Gutbrod" Date: Tue, 5 Apr 2022 23:25:37 +0200 Subject: [PATCH] app-shells/zsh-history-substring-search: initial import Signed-off-by: Ronny (tastytea) Gutbrod --- .../zsh-history-substring-search/Manifest | 1 + .../zsh-history-substring-search/metadata.xml | 17 ++++++++++ .../zsh-history-substring-search-1.0.2.ebuild | 33 +++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 app-shells/zsh-history-substring-search/Manifest create mode 100644 app-shells/zsh-history-substring-search/metadata.xml create mode 100644 app-shells/zsh-history-substring-search/zsh-history-substring-search-1.0.2.ebuild diff --git a/app-shells/zsh-history-substring-search/Manifest b/app-shells/zsh-history-substring-search/Manifest new file mode 100644 index 0000000000..73017df55d --- /dev/null +++ b/app-shells/zsh-history-substring-search/Manifest @@ -0,0 +1 @@ +DIST zsh-history-substring-search-1.0.2.tar.gz 9074 BLAKE2B 26c6a080f82586eef9b33bfbe1da89951a6bb9d8e7362dca83d90b9d491e3cd497fb3b4be2ab1a94082351711b941bd7942cd554e7e4d93a69d4168ef13f80ee SHA512 9547cdd74f6bd5b102ca29b7b455cd4ce7450fe86864b5a149365de4c37d3da887edb403b195e80c142fe61861a3e4c063a5d8ba08ec0532b27a1207c80a023d diff --git a/app-shells/zsh-history-substring-search/metadata.xml b/app-shells/zsh-history-substring-search/metadata.xml new file mode 100644 index 0000000000..129a6e5e32 --- /dev/null +++ b/app-shells/zsh-history-substring-search/metadata.xml @@ -0,0 +1,17 @@ + + + + + gentoo@tastytea.de + Ronny (tastytea) Gutbrod + + + zsh-users/zsh-history-substring-search + + + A clean-room implementation of the Fish shell's history search + feature, where you can type in any part of any command from + history and then press chosen keys, such as the UP and DOWN + arrows, to cycle through matches. + + diff --git a/app-shells/zsh-history-substring-search/zsh-history-substring-search-1.0.2.ebuild b/app-shells/zsh-history-substring-search/zsh-history-substring-search-1.0.2.ebuild new file mode 100644 index 0000000000..52a8faa38e --- /dev/null +++ b/app-shells/zsh-history-substring-search/zsh-history-substring-search-1.0.2.ebuild @@ -0,0 +1,33 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit readme.gentoo-r1 + +DESCRIPTION="ZSH port of Fish history search (up arrow)" +HOMEPAGE="https://github.com/zsh-users/zsh-history-substring-search" +SRC_URI="https://github.com/zsh-users/zsh-history-substring-search/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND="app-shells/zsh" + +DISABLE_AUTOFORMATTING="true" +DOC_CONTENTS="In order to use ${CATEGORY}/${PN} add +. /usr/share/zsh/site-functions/async.zsh +at the end of your ~/.zshrc" + +src_install() { + insinto /usr/share/zsh/site-functions + doins ${PN}.zsh + + readme.gentoo_create_doc + einstalldocs +} + +pkg_postinst() { + readme.gentoo_print_elog +}