Mercurial > ec-dotfiles
comparison 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 |
comparison
equal
deleted
inserted
replaced
463:4180a94a80af | 464:9c9aeccbdadf |
---|---|
14 [ -f "${HOME}/.ecos_bash.before" ] && . "${HOME}/.ecos_bash.before" | 14 [ -f "${HOME}/.ecos_bash.before" ] && . "${HOME}/.ecos_bash.before" |
15 | 15 |
16 _org_path="${PATH}" | 16 _org_path="${PATH}" |
17 | 17 |
18 # Basic PATH | 18 # Basic PATH |
19 export PATH="${HOME}/.ecos_bin:${HOME}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" | 19 export PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" |
20 | 20 |
21 # pkgsrc | 21 # pkgsrc |
22 if test -d /usr/pkg; then | 22 if test -d /usr/pkg; then |
23 PATH="${PATH}:/usr/pkg/bin:/usr/pkg/sbin" | 23 PATH="${PATH}:/usr/pkg/bin:/usr/pkg/sbin" |
24 if test -d /usr/pkg/java/openjdk7; then | 24 if test -d /usr/pkg/java/openjdk7; then |
25 # OpenJDK 7 in pkgsrc | 25 # OpenJDK 7 in pkgsrc |
26 PATH="${PATH}:/usr/pkg/java/openjdk7/bin" | 26 PATH="${PATH}:/usr/pkg/java/openjdk7/bin" |
27 fi | 27 fi |
28 fi | |
29 | |
30 # MacPorts | |
31 if test -d /opt/local; then | |
32 PATH="${PATH}:/opt/local/bin:/opt/local/sbin" | |
33 fi | 28 fi |
34 | 29 |
35 # OpenBSD X11 | 30 # OpenBSD X11 |
36 test -d /usr/X11R6/bin && PATH="${PATH}:/usr/X11R6/bin" | 31 test -d /usr/X11R6/bin && PATH="${PATH}:/usr/X11R6/bin" |
37 # PostgreSQL Yum | 32 # PostgreSQL Yum |
102 done | 97 done |
103 for i in /usr/{sfw,xpg4}/bin; do | 98 for i in /usr/{sfw,xpg4}/bin; do |
104 [ -d "${i}" ] && PATH="${PATH}:${i}" | 99 [ -d "${i}" ] && PATH="${PATH}:${i}" |
105 done | 100 done |
106 [ -d "/opt/csw/gnu" ] && PATH="/opt/csw/gnu:${PATH}" | 101 [ -d "/opt/csw/gnu" ] && PATH="/opt/csw/gnu:${PATH}" |
107 # Joyent's pkgsrc is awesome. | |
108 [ -d /opt/local ] && PATH="/opt/local/bin:/opt/local/sbin:${PATH}" | |
109 # Working terminfo (as opposed to solaris' mostly-broken terminfo). | 102 # Working terminfo (as opposed to solaris' mostly-broken terminfo). |
110 [ -d /opt/local/share/lib/terminfo ] && export TERMINFO=/opt/local/share/lib/terminfo | 103 [ -d /opt/local/share/lib/terminfo ] && export TERMINFO=/opt/local/share/lib/terminfo |
111 alias ping="ping -s" | 104 alias ping="ping -s" |
112 alias ping6="ping -A inet6" | 105 alias ping6="ping -A inet6" |
113 # Check if we have sane(?) terminfo, assume broken terminfo otherwise. | 106 # Check if we have sane(?) terminfo, assume broken terminfo otherwise. |
264 | 257 |
265 if command -v curl > /dev/null 2>&1; then | 258 if command -v curl > /dev/null 2>&1; then |
266 alias 0p="gzip | openssl base64 | curl 'http://0paste.com/pastes.txt' -F 'paste[paste_gzip_base64]=<-'" | 259 alias 0p="gzip | openssl base64 | curl 'http://0paste.com/pastes.txt' -F 'paste[paste_gzip_base64]=<-'" |
267 fi | 260 fi |
268 | 261 |
262 # Priority PATHs. Always enable. | |
263 PATH="${HOME}/bin:${HOME}/.ecos_bin:/opt/local/bin:/opt/local/sbin:${PATH}" | |
264 | |
269 [ -f "${HOME}/.ecos_bash.after" ] && . "${HOME}/.ecos_bash.after" | 265 [ -f "${HOME}/.ecos_bash.after" ] && . "${HOME}/.ecos_bash.after" |