Mercurial > ec-dotfiles
comparison rc/bashrc @ 385:3e6324183eb4
PATH adjustment.
| author | Edho Arief <edho@myconan.net> | 
|---|---|
| date | Thu, 26 Jul 2012 12:37:14 +0700 | 
| parents | 7ceaf3cd8eea | 
| children | 8438e85e1490 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 384:f2a5dd14fdff | 385:3e6324183eb4 | 
|---|---|
| 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 export PATH="${HOME}/.ecos_bin:${HOME}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" | |
| 18 | |
| 19 # pkgsrc | |
| 20 if test -d /usr/pkg; then | |
| 21 PATH="${PATH}:/usr/pkg/bin:/usr/pkg/sbin" | |
| 22 if test -d /usr/pkg/java/openjdk7; then | |
| 23 # OpenJDK 7 in pkgsrc | |
| 24 PATH="${PATH}:/usr/pkg/java/openjdk7/bin" | |
| 25 fi | |
| 26 fi | |
| 27 | |
| 16 # Nuke currently defined functions | 28 # Nuke currently defined functions | 
| 17 unset -f $(set | grep -E ' ()$' | cut -d ' ' -f 1) | 29 unset -f $(set | egrep ' ()$' | cut -d ' ' -f 1) | 
| 18 | 30 | 
| 19 # Nuke bash-completion | 31 # Nuke bash-completion | 
| 20 complete -r | 32 complete -r | 
| 21 | 33 | 
| 22 # Nuke aliases | 34 # Nuke aliases | 
| 23 unalias -a | 35 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 | 36 | 
| 30 shopt -s histappend | 37 shopt -s histappend | 
| 31 PROMPT_COMMAND="history -a; history -n" | 38 PROMPT_COMMAND="history -a; history -n" | 
| 32 export HISTFILESIZE=10000 | 39 export HISTFILESIZE=10000 | 
| 33 export HISTCONTROL=ignoredups | 40 export HISTCONTROL=ignoredups | 
| 112 elif command -v colorls > /dev/null 2>&1; then | 119 elif command -v colorls > /dev/null 2>&1; then | 
| 113 alias ls="colorls -F" | 120 alias ls="colorls -F" | 
| 114 fi | 121 fi | 
| 115 ;; | 122 ;; | 
| 116 NetBSD|DragonFly) | 123 NetBSD|DragonFly) | 
| 117 PATH="${PATH}:/usr/pkg/bin:/usr/pkg/sbin" | |
| 118 if command -v gls > /dev/null 2>&1; then | 124 if command -v gls > /dev/null 2>&1; then | 
| 119 _has_gnu_ls=y | 125 _has_gnu_ls=y | 
| 120 _ls="gls" | 126 _ls="gls" | 
| 121 elif command -v colorls > /dev/null 2>&1; then | 127 elif command -v colorls > /dev/null 2>&1; then | 
| 122 alias ls="colorls -F" | 128 alias ls="colorls -F" | 
