changeset 387:b25fff40927c

More PATH adjustment.
author Edho Arief <edho@myconan.net>
date Thu, 26 Jul 2012 15:39:31 +0700
parents 8438e85e1490
children e5cf57bf6b47 fb00293a6bbe
files rc/bashrc
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rc/bashrc	Thu Jul 26 12:37:39 2012 +0700
+++ b/rc/bashrc	Thu Jul 26 15:39:31 2012 +0700
@@ -26,6 +26,11 @@
     PATH="${PATH}:/usr/pkg/java/openjdk7/bin"
   fi
 fi
+# OpenBSD X11
+test -d /usr/X11R6/bin && PATH="${PATH}:/usr/X11R6/bin"
+# PostgreSQL Yum
+test -d /usr/pgsql-8.4 && PATH="/usr/pgsql-8.4/bin:${PATH}"
+test -d /usr/pgsql-9.1 && PATH="/usr/pgsql-9.1/bin:${PATH}"
 
 # Nuke currently defined functions
 unset -f $(set | egrep ' ()$' | cut -d ' ' -f 1)
@@ -114,7 +119,6 @@
     alias top="top -P"
   ;;
   OpenBSD)
-    PATH="${PATH}:/usr/X11R6/bin"
     if command -v gls > /dev/null 2>&1; then
       _has_gnu_ls=y
       _ls="gls"