mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 07:33:19 -04:00
app-shells/zsh-histdb: new package
Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
1
app-shells/zsh-histdb/Manifest
Normal file
1
app-shells/zsh-histdb/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST zsh-histdb-0_pre20200405.tar.gz 11227 BLAKE2B ac63958e910bae87a0cf81c31ca9bb84d5c51bb5ad94339498d05741a424d6410008a07f86da03847673af3cfc9750b03f126c3eb4a994c8ffbccf589849421f SHA512 ae2e31fc5c872c0dbc4615c8ba3d0935c57c3d24158baae1fdb935723859f62d529941b8b0112a28259629bf2f92e7f2a953f0880fbf3c7746a301aa70dd4f04
|
||||
23
app-shells/zsh-histdb/metadata.xml
Normal file
23
app-shells/zsh-histdb/metadata.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/larkery/zsh-histdb/issues</bugs-to>
|
||||
<remote-id type="github">larkery/zsh-histdb</remote-id>
|
||||
</upstream>
|
||||
<longdescription lang="en">
|
||||
This is a small bit of zsh code that stores your history into a sqlite3 database. It improves on the normal history by storing, for each history command:
|
||||
|
||||
The start and stop times of the command
|
||||
The working directory where the command was run
|
||||
The hostname of the machine
|
||||
A unique per-host session ID, so history from several sessions is not confused
|
||||
The exit status of the command
|
||||
|
||||
It is also possible to merge multiple history databases together without conflict, so long as all your machines have different hostnames.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
35
app-shells/zsh-histdb/zsh-histdb-0_pre20200405.ebuild
Normal file
35
app-shells/zsh-histdb/zsh-histdb-0_pre20200405.ebuild
Normal file
@@ -0,0 +1,35 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
COMMIT="7c34b558cca374b6c8727fc08868f2bc044fd162"
|
||||
|
||||
DESCRIPTION="A slightly better history for zsh"
|
||||
HOMEPAGE="https://github.com/larkery/zsh-histdb"
|
||||
SRC_URI="https://github.com/larkery/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
DEPEND=""
|
||||
RDEPEND="
|
||||
app-shells/zsh
|
||||
dev-db/sqlite
|
||||
"
|
||||
|
||||
DOCS=( README.org )
|
||||
|
||||
S="${WORKDIR}/${PN}-${COMMIT}"
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
rm -rf "LICENSE" "${DOCS[@]}" || die
|
||||
dodir "/usr/share/zsh/plugins"
|
||||
insinto "/usr/share/zsh/plugins/${PN}"
|
||||
doins -r .
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "To use this module please read the README"
|
||||
}
|
||||
Reference in New Issue
Block a user