Mercurial > ec-dotfiles
comparison bash @ 50:b7a63c71b07f
[bash] export PATH last, added various default solaris PATH.
author | Edho Prima Arief <me@myconan.net> |
---|---|
date | Wed, 27 Apr 2011 22:42:33 +0700 |
parents | b924652e169d |
children | 4496c7bf953d |
comparison
equal
deleted
inserted
replaced
49:b924652e169d | 50:b7a63c71b07f |
---|---|
1 #!/usr/bin/env bash | 1 #!/usr/bin/env bash |
2 | 2 |
3 [ -f .ecos_bash.before ] && . .ecos_bash.before | 3 [ -f .ecos_bash.before ] && . .ecos_bash.before |
4 | 4 |
5 export PATH="${HOME}/.ecos_bin:${HOME}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" | 5 PATH="${HOME}/.ecos_bin:${HOME}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" |
6 | 6 |
7 PS1='[\u@\h \W]\$ ' | 7 PS1='[\u@\h \W]\$ ' |
8 | 8 |
9 export PAGER='less -Rins' | 9 export PAGER='less -Rins' |
10 export EDITOR=vi | 10 export EDITOR=vi |
19 _has_gnu_ls=y | 19 _has_gnu_ls=y |
20 ;; | 20 ;; |
21 SunOS) | 21 SunOS) |
22 [ -x /usr/gnu/bin/rm ] && _has_rm_I=y | 22 [ -x /usr/gnu/bin/rm ] && _has_rm_I=y |
23 [ -x /usr/gnu/bin/ls ] && _has_gnu_ls=y | 23 [ -x /usr/gnu/bin/ls ] && _has_gnu_ls=y |
24 [ -d /usr/gnu/bin ] && export PATH="/usr/gnu/bin:${PATH}" | 24 [ -d /usr/gnu/bin ] && PATH="/usr/gnu/bin:${PATH}" |
25 [ -d /opt/csw/bin ] && PATH="/opt/csw/bin:${PATH}" | |
26 [ -d /opt/csw/sbin ] && PATH="/opt/csw/sbin:${PATH}" | |
25 ;; | 27 ;; |
26 *BSD) | 28 *BSD) |
27 _has_rm_I=y | 29 _has_rm_I=y |
28 ;; | 30 ;; |
29 esac | 31 esac |
41 | 43 |
42 unset _has_rm_I | 44 unset _has_rm_I |
43 unset _has_gnu_ls | 45 unset _has_gnu_ls |
44 unset _has_bsd_ls | 46 unset _has_bsd_ls |
45 | 47 |
48 export PATH | |
46 [ -f .ecos_bash.after ] && . .ecos_bash.after | 49 [ -f .ecos_bash.after ] && . .ecos_bash.after |