Mercurial > ec-dotfiles
comparison rc/bashrc @ 388:e5cf57bf6b47
Merge commit 'd029961' into rhel5
author | Edho Arief <edho@myconan.net> |
---|---|
date | Thu, 26 Jul 2012 10:39:57 +0200 |
parents | b25fff40927c |
children | c555557692bc |
comparison
equal
deleted
inserted
replaced
381:bb6ea516f312 | 388:e5cf57bf6b47 |
---|---|
11 return | 11 return |
12 fi | 12 fi |
13 | 13 |
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}" | |
17 | |
18 # Basic PATH | |
19 export PATH="${HOME}/.ecos_bin:${HOME}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" | |
20 | |
21 # pkgsrc | |
22 if test -d /usr/pkg; then | |
23 PATH="${PATH}:/usr/pkg/bin:/usr/pkg/sbin" | |
24 if test -d /usr/pkg/java/openjdk7; then | |
25 # OpenJDK 7 in pkgsrc | |
26 PATH="${PATH}:/usr/pkg/java/openjdk7/bin" | |
27 fi | |
28 fi | |
29 # OpenBSD X11 | |
30 test -d /usr/X11R6/bin && PATH="${PATH}:/usr/X11R6/bin" | |
31 # PostgreSQL Yum | |
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}" | |
34 | |
16 # Nuke currently defined functions | 35 # Nuke currently defined functions |
17 unset -f $(set | grep -E ' ()$' | cut -d ' ' -f 1) | 36 unset -f $(set | egrep ' ()$' | cut -d ' ' -f 1) |
18 | 37 |
19 # Nuke bash-completion | 38 # Nuke bash-completion |
20 complete -r | 39 complete -r |
21 | 40 |
22 # Nuke aliases | 41 # Nuke aliases |
23 unalias -a | 42 unalias -a |
24 | |
25 _org_path="${PATH}" | |
26 export PATH="${HOME}/.ecos_bin:${HOME}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" | |
27 # OpenJDK in pkgsrc | |
28 PATH="${PATH}:/usr/pkg/java/openjdk7/bin" | |
29 | 43 |
30 shopt -s histappend | 44 shopt -s histappend |
31 PROMPT_COMMAND="history -a; history -n" | 45 PROMPT_COMMAND="history -a; history -n" |
32 export HISTFILESIZE=10000 | 46 export HISTFILESIZE=10000 |
33 export HISTCONTROL=ignoredups | 47 export HISTCONTROL=ignoredups |
103 alias man="man -o" | 117 alias man="man -o" |
104 # Multi CPU awesomeness. | 118 # Multi CPU awesomeness. |
105 alias top="top -P" | 119 alias top="top -P" |
106 ;; | 120 ;; |
107 OpenBSD) | 121 OpenBSD) |
108 PATH="${PATH}:/usr/X11R6/bin" | |
109 if command -v gls > /dev/null 2>&1; then | 122 if command -v gls > /dev/null 2>&1; then |
110 _has_gnu_ls=y | 123 _has_gnu_ls=y |
111 _ls="gls" | 124 _ls="gls" |
112 elif command -v colorls > /dev/null 2>&1; then | 125 elif command -v colorls > /dev/null 2>&1; then |
113 alias ls="colorls -F" | 126 alias ls="colorls -F" |
114 fi | 127 fi |
115 ;; | 128 ;; |
116 NetBSD|DragonFly) | 129 NetBSD|DragonFly) |
117 PATH="${PATH}:/usr/pkg/bin:/usr/pkg/sbin" | |
118 if command -v gls > /dev/null 2>&1; then | 130 if command -v gls > /dev/null 2>&1; then |
119 _has_gnu_ls=y | 131 _has_gnu_ls=y |
120 _ls="gls" | 132 _ls="gls" |
121 elif command -v colorls > /dev/null 2>&1; then | 133 elif command -v colorls > /dev/null 2>&1; then |
122 alias ls="colorls -F" | 134 alias ls="colorls -F" |