projects
/
dotfiles-public.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b4b2e7
)
Also detect Gentoo OS via the newer /etc/portage/make.conf location.
author
W. Trevor King
<wking@tremily.us>
Tue, 24 Jul 2012 14:08:15 +0000
(10:08 -0400)
committer
W. Trevor King
<wking@tremily.us>
Tue, 24 Jul 2012 14:08:15 +0000
(10:08 -0400)
src/.bashrc.d/01detect_system
patch
|
blob
|
history
diff --git
a/src/.bashrc.d/01detect_system
b/src/.bashrc.d/01detect_system
index d9a5393719a6f46a3d16be99c2f6061beaf86d00..7030a1b6316e9ee629ba52a17ea4e3bee9c8ea93 100644
(file)
--- 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'