diff rc/bashrc @ 464:9c9aeccbdadf

Resort prioritized paths.
author Edho Arief <edho@myconan.net>
date Wed, 01 May 2013 15:09:40 +0900
parents a7e5a165e981
children 95dc58db0d27
line wrap: on
line diff
--- a/rc/bashrc	Mon Apr 29 14:27:44 2013 +0900
+++ b/rc/bashrc	Wed May 01 15:09:40 2013 +0900
@@ -16,7 +16,7 @@
 _org_path="${PATH}"
 
 # Basic PATH
-export PATH="${HOME}/.ecos_bin:${HOME}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
+export PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
 
 # pkgsrc
 if test -d /usr/pkg; then
@@ -27,11 +27,6 @@
   fi
 fi
 
-# MacPorts
-if test -d /opt/local; then
-  PATH="${PATH}:/opt/local/bin:/opt/local/sbin"
-fi
-
 # OpenBSD X11
 test -d /usr/X11R6/bin && PATH="${PATH}:/usr/X11R6/bin"
 # PostgreSQL Yum
@@ -104,8 +99,6 @@
       [ -d "${i}" ] && PATH="${PATH}:${i}"
     done
     [ -d "/opt/csw/gnu" ] && PATH="/opt/csw/gnu:${PATH}"
-    # Joyent's pkgsrc is awesome.
-    [ -d /opt/local ] && PATH="/opt/local/bin:/opt/local/sbin:${PATH}"
     # Working terminfo (as opposed to solaris' mostly-broken terminfo).
     [ -d /opt/local/share/lib/terminfo ] && export TERMINFO=/opt/local/share/lib/terminfo
     alias ping="ping -s"
@@ -266,4 +259,7 @@
   alias 0p="gzip | openssl base64 | curl 'http://0paste.com/pastes.txt' -F 'paste[paste_gzip_base64]=<-'"
 fi
 
+# Priority PATHs. Always enable.
+PATH="${HOME}/bin:${HOME}/.ecos_bin:/opt/local/bin:/opt/local/sbin:${PATH}"
+
 [ -f "${HOME}/.ecos_bash.after" ] && . "${HOME}/.ecos_bash.after"