app-shells/oh-my-posh - 9999 (nadevko)

Search

Install

Install this version:

emerge -a =app-shells/oh-my-posh-9999

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-shells/oh-my-posh-9999

Or alternatively:

emerge --autounmask-write -a =app-shells/oh-my-posh-9999

Package Information

Description:
Prompt theme engine for any shell
Homepage:
https://ohmyposh.dev https://github.com/JanDeDobbeleer/oh-my-posh
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
9999 9 0
View Raw Ebuild
# Copyright 2026 Nadeŭka <me+oss@nadevko.cc>
# Distributed under the terms of the GNU General Public License v2
EAPI=9

inherit git-r3 go-module

DESCRIPTION='Prompt theme engine for any shell'
HOMEPAGE='
	https://ohmyposh.dev
	https://github.com/JanDeDobbeleer/oh-my-posh
'
EGIT_REPO_URI=https://github.com/JanDeDobbeleer/${PN}.git
S+=/src
LICENSE=MIT

SLOT=0
IUSE='+themes'

BDEPEND='>=dev-lang/go-1.26.0'

src_unpack() {
	git-r3_src_unpack
	go-module_live_vendor
}

src_compile() {
	ego build -o oh-my-posh .
}

src_test() {
	ego test -v ./...
}

src_install() {
	dobin oh-my-posh
	einstalldocs

	if use themes; then
		insinto /usr/share/oh-my-posh/themes
		doins "${WORKDIR}/${P}"/themes/*.json
	fi
}

USE Flags

Manage flags for this package: euse -i <flag> -p app-shells/oh-my-posh | euse -E <flag> -p app-shells/oh-my-posh | euse -D <flag> -p app-shells/oh-my-posh

Global/Standard Flags

themes
Default: Enabled (+)

Inherited Eclasses

Dependencies

BDEPEND

>=dev-lang/go-1.26.0