Mercurial > ec-dotfiles
comparison rc/bashrc @ 439:cb2d444253f4
Added enterprisedb postgres.
| author | Edho Arief <edho@myconan.net> |
|---|---|
| date | Sun, 06 Jan 2013 13:28:24 +0300 |
| parents | 1094159210e0 |
| children | abbdb936a36a |
comparison
equal
deleted
inserted
replaced
| 438:1094159210e0 | 439:cb2d444253f4 |
|---|---|
| 30 test -d /usr/X11R6/bin && PATH="${PATH}:/usr/X11R6/bin" | 30 test -d /usr/X11R6/bin && PATH="${PATH}:/usr/X11R6/bin" |
| 31 # PostgreSQL Yum | 31 # PostgreSQL Yum |
| 32 test -d /usr/pgsql-8.4 && PATH="/usr/pgsql-8.4/bin:${PATH}" | 32 test -d /usr/pgsql-8.4 && PATH="/usr/pgsql-8.4/bin:${PATH}" |
| 33 test -d /usr/pgsql-9.1 && PATH="/usr/pgsql-9.1/bin:${PATH}" | 33 test -d /usr/pgsql-9.1 && PATH="/usr/pgsql-9.1/bin:${PATH}" |
| 34 test -d /usr/pgsql-9.2 && PATH="/usr/pgsql-9.2/bin:${PATH}" | 34 test -d /usr/pgsql-9.2 && PATH="/usr/pgsql-9.2/bin:${PATH}" |
| 35 | |
| 36 # PostgreSQL EnterpriseDB | |
| 37 # Defaults to last version available. | |
| 38 _pgbindir=(/opt/PostgreSQL/*/bin) | |
| 39 _pgbindir="${_pgbindir[@]:(-1)}" | |
| 40 test -d "${_pgbindir}" && PATH="${_pgbindir}:${PATH}" | |
| 41 unset _pgbindir | |
| 35 | 42 |
| 36 # Nuke currently defined functions | 43 # Nuke currently defined functions |
| 37 unset -f $(set | grep ' \(\)$' | cut -d ' ' -f 1) | 44 unset -f $(set | grep ' \(\)$' | cut -d ' ' -f 1) |
| 38 | 45 |
| 39 # Nuke bash-completion | 46 # Nuke bash-completion |
