From: tfheen Date: Wed, 17 Sep 2003 23:45:35 +0000 (+0000) Subject: try to use store intelligently X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5606a28b525c98377ddb4f53865f0cf1637ad051;p=dotfiles try to use store intelligently git-svn-id: file:///svn/tfheen/trunk/dotfiles@189 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- 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