Mercurial > ec-dotfiles
comparison bash @ 117:548cf46e9cb4
Ensures no double loading using C-style variable test.
author | Edho Prima Arief <edho@myconan.net> |
---|---|
date | Thu, 20 Oct 2011 11:04:50 +0700 |
parents | abc5c2edb967 |
children | eacc854eae67 |
comparison
equal
deleted
inserted
replaced
113:9b91e702c19c | 117:548cf46e9cb4 |
---|---|
1 #!/usr/bin/env bash | 1 #!/usr/bin/env bash |
2 | |
3 if [ "${ECOS_BASH_LOADED}" != "yes" ]; then | |
4 | |
5 export ECOS_BASH_LOADED="yes" | |
2 | 6 |
3 [ -f "${HOME}/.ecos_bash.before" ] && . "${HOME}/.ecos_bash.before" | 7 [ -f "${HOME}/.ecos_bash.before" ] && . "${HOME}/.ecos_bash.before" |
4 | 8 |
5 _org_path="${PATH}" | 9 _org_path="${PATH}" |
6 export PATH="${HOME}/.ecos_bin:${HOME}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" | 10 export PATH="${HOME}/.ecos_bin:${HOME}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" |
81 if command -v vim > /dev/null 2>&1; then | 85 if command -v vim > /dev/null 2>&1; then |
82 alias vi=vim | 86 alias vi=vim |
83 export EDITOR=vim | 87 export EDITOR=vim |
84 fi | 88 fi |
85 [ -f "${HOME}/.ecos_bash.after" ] && . "${HOME}/.ecos_bash.after" | 89 [ -f "${HOME}/.ecos_bash.after" ] && . "${HOME}/.ecos_bash.after" |
90 | |
91 fi | |
92 |