et-prompt rebranded to over-prompt, no other changes
This commit is contained in:
commit
04c4330f99
4 changed files with 635 additions and 0 deletions
41
over-prompt-9999.ebuild
Normal file
41
over-prompt-9999.ebuild
Normal file
|
@ -0,0 +1,41 @@
|
|||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit git-2
|
||||
|
||||
DESCRIPTION="A nonintrusive shell prompt that provides: username, hostname, tty name, cwd, return value of the last command, current time, disk space, and system load. Zsh is preferred, although bash is also somewhat supported."
|
||||
|
||||
HOMEPAGE="http://overtech.cz/"
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="git://overtech.cz/over-prompt.git"
|
||||
|
||||
LICENSE="AOJSL"
|
||||
SLOT="0"
|
||||
KEYWORDS="x86 amd64"
|
||||
|
||||
src_compile() {
|
||||
g++ -ansi -Wall -o data data.cpp
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/${PN}
|
||||
insopts -m755
|
||||
doins data
|
||||
doins *-init
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "Source /usr/share/${PN}/bash-init or /usr/share/${PN}/zsh-init"
|
||||
einfo "(depending on which shell you're running) to enable the prompt."
|
||||
einfo "If you wish, write the following into /etc/over/prompt.cfg:"
|
||||
einfo ""
|
||||
einfo "export OVER_PROMPT_OPTS=\"A B C\""
|
||||
einfo ""
|
||||
einfo "where A is the percentage at which your free space indicator turns"
|
||||
einfo "yellow, B is the threshold for red color, and C is either 'short' or"
|
||||
einfo "'long' (without the quotes), indicating whether you want to display"
|
||||
einfo "short or long mount point names. The default is \"20 10 short\"."
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue