From 4503e13f7da217232091570c9c47948a2d30f4f9 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 24 Jul 2012 10:08:15 -0400 Subject: [PATCH] Also detect Gentoo OS via the newer /etc/portage/make.conf location. --- src/.bashrc.d/01detect_system | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/.bashrc.d/01detect_system b/src/.bashrc.d/01detect_system index d9a5393..7030a1b 100644 --- a/src/.bashrc.d/01detect_system +++ b/src/.bashrc.d/01detect_system @@ -5,7 +5,7 @@ if [ -z "${OS}" ]; then export OS='UNKNOWN' - if [ -f '/etc/make.conf' ]; then + if [ -f '/etc/make.conf' ] || [ -f '/etc/portage/make.conf' ]; then export OS='Gentoo' elif [ "${SHELL#*gentoo}" != "${SHELL}" ]; then # assumes 'gentoo' in prefix export OS='Gentoo Prefix' -- 2.26.2