From 5606a28b525c98377ddb4f53865f0cf1637ad051 Mon Sep 17 00:00:00 2001 From: tfheen Date: Wed, 17 Sep 2003 23:45:35 +0000 Subject: [PATCH] try to use store intelligently git-svn-id: file:///svn/tfheen/trunk/dotfiles@189 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- environment | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/environment b/environment index 0f4f1c5..b86d9fe 100644 --- a/environment +++ b/environment @@ -10,6 +10,12 @@ if [ `uname -s` = "FreeBSD" ]; then unalias ls fi +is_debian () { + if [ -f /etc/debian_version ]; then + return 0 + fi + return 1 +} setpathifdir () { if [ -d "$1" ]; then @@ -23,8 +29,13 @@ appendpathifdir () { fi } -appendpathifdir /store/gnu/bin -appendpathifdir /store/bin +if is_debian; then + appendpathifdir /store/gnu/bin + appendpathifdir /store/bin +else + setpathifdir /store/gnu/bin + setpathifdir /store/bin +fi setpathifdir /usr/local/bin setpathifdir $HOME/usr/bin setpathifdir $HOME/bin -- 2.39.5