Mercurial > ec-dotfiles
comparison bash @ 71:40236fd0a3a5
Explicit path checking.
| author | Edho Prima Arief <me@myconan.net> | 
|---|---|
| date | Mon, 23 May 2011 00:01:20 +0700 | 
| parents | 4510c8a9d8ec | 
| children | f993714efa7b | 
   comparison
  equal
  deleted
  inserted
  replaced
| 70:babf62f1bba7 | 71:40236fd0a3a5 | 
|---|---|
| 1 #!/usr/bin/env bash | 1 #!/usr/bin/env bash | 
| 2 | 2 | 
| 3 [ -f .ecos_bash.before ] && . .ecos_bash.before | 3 [ -f "${HOME}/.ecos_bash.before" ] && . "${HOME}/.ecos_bash.before" | 
| 4 | 4 | 
| 5 _org_path="${PATH}" | 5 _org_path="${PATH}" | 
| 6 export PATH="${HOME}/.ecos_bin:${HOME}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" | 6 export PATH="${HOME}/.ecos_bin:${HOME}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" | 
| 7 | 7 | 
| 8 PS1='[\u@\h \W]\$ ' | 8 PS1='[\u@\h \W]\$ ' | 
| 69 | 69 | 
| 70 if command -v vim > /dev/null 2>&1; then | 70 if command -v vim > /dev/null 2>&1; then | 
| 71 alias vi=vim | 71 alias vi=vim | 
| 72 export EDITOR=vim | 72 export EDITOR=vim | 
| 73 fi | 73 fi | 
| 74 [ -f .ecos_bash.after ] && . .ecos_bash.after | 74 [ -f "${HOME}/.ecos_bash.after" ] && . "${HOME}/.ecos_bash.after" | 
