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:
a6bf885
)
Add Fedora support to .bashrc.d/01detect_system (based on Fedora 8).
author
W. Trevor King
<wking@drexel.edu>
Thu, 1 Dec 2011 15:23:48 +0000
(10:23 -0500)
committer
W. Trevor King
<wking@drexel.edu>
Thu, 1 Dec 2011 15:23:48 +0000
(10:23 -0500)
src/.bashrc.d/01detect_system
patch
|
blob
|
history
diff --git
a/src/.bashrc.d/01detect_system
b/src/.bashrc.d/01detect_system
index df8b7f38392ad4cb45d9c11bc046931341c494a4..6003503232abb3648f5525f1e9df3f2f5c3f949f 100644
(file)
--- a/
src/.bashrc.d/01detect_system
+++ b/
src/.bashrc.d/01detect_system
@@
-13,6
+13,8
@@
if [ -z "${OS}" ]; then
export OS='Debian'
elif grep -i ubuntu /etc/issue > /dev/null 2>&1; then
export OS='Ubuntu'
+ elif grep -i fedora /etc/issue > /dev/null 2>&1; then
+ export OS='Fedora'
else
echo "unknown system. Adjust .bashrc.d/01detect_system or set OS by hand" >&2
fi