Install this version:
emerge -a =app-shells/oh-my-posh-30.0.0
# Copyright 2026 Nadeŭka <me+oss@nadevko.cc>
# Distributed under the terms of the GNU General Public License v2
EAPI=9
inherit go-module
DESCRIPTION='Prompt theme engine for any shell'
HOMEPAGE='
https://ohmyposh.dev
https://github.com/JanDeDobbeleer/oh-my-posh
'
_SRC_URI_BASE=https://github.com/JanDeDobbeleer/${PN}
SRC_URI="
${_SRC_URI_BASE}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
${_SRC_URI_BASE}/releases/download/v${PV}/${P}-deps.tar.xz
"
LICENSE=MIT
SLOT=0
KEYWORDS='amd64 ~arm64 ~x86'
IUSE='+themes'
BDEPEND='>=dev-lang/go-1.26.0'
src_unpack() {
local -x TAR_OPTIONS='--warning=no-unknown-keyword'
default
ln -sf gomodcache "${WORKDIR}"/go-mod || die
}
src_compile() {
ego build -C src -o "${S}"/oh-my-posh .
}
src_test() {
ego test -C src -v ./...
}
src_install() {
dobin oh-my-posh
einstalldocs
if use themes; then
insinto /usr/share/oh-my-posh/themes
doins themes/*.json
fi
}
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