From: W. Trevor King Date: Tue, 24 Jul 2012 14:08:15 +0000 (-0400) Subject: Also detect Gentoo OS via the newer /etc/portage/make.conf location. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4503e13f7da217232091570c9c47948a2d30f4f9;p=dotfiles-public.git Also detect Gentoo OS via the newer /etc/portage/make.conf location. --- 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'