comparison setup @ 338:94d0e4826d28

Cosmetics.
author Edho Arief <edho@myconan.net>
date Wed, 21 Mar 2012 13:01:55 +0700
parents db66d53e10ea
children 38fad89edd55
comparison
equal deleted inserted replaced
337:e8b10a42ab54 338:94d0e4826d28
13 13
14 _echo() { 14 _echo() {
15 _echon "${*}"; printf "\n" 15 _echon "${*}"; printf "\n"
16 } 16 }
17 _echon() { 17 _echon() {
18 printf "%s" "${*}" 18 printf '%s' "${*}"
19 } 19 }
20 20
21 _tcsh() { 21 _tcsh() {
22 case "$1" in 22 case "$1" in
23 uninstall|install) 23 uninstall|install)
26 ;; 26 ;;
27 esac 27 esac
28 } 28 }
29 29
30 _bash() { 30 _bash() {
31 case "$1" in 31 case "${1}" in
32 uninstall|install) 32 uninstall|install)
33 _rc "${1}" "bashrc" ".ecos_bash" 33 _rc "${1}" "bashrc" ".ecos_bash"
34 _init "${1}" '[ -r "${HOME}/.ecos_bash" ] && . "${HOME}/.ecos_bash" #ECCORE_BASH' ".bash_profile" 34 _init "${1}" '[ -r "${HOME}/.ecos_bash" ] && . "${HOME}/.ecos_bash" #ECCORE_BASH' ".bash_profile"
35 _init "${1}" '[ -r "${HOME}/.ecos_bash" ] && . "${HOME}/.ecos_bash" #ECCORE_BASH' ".bashrc" 35 _init "${1}" '[ -r "${HOME}/.ecos_bash" ] && . "${HOME}/.ecos_bash" #ECCORE_BASH' ".bashrc"
36 ;; 36 ;;
37 esac 37 esac
38 } 38 }
39 39
40 _zsh() { 40 _zsh() {
41 case "$1" in 41 case "${1}" in
42 uninstall|install) 42 uninstall|install)
43 _rc "${1}" "zshrc" ".ecos_zsh" 43 _rc "${1}" "zshrc" ".ecos_zsh"
44 _init "${1}" '[ -r "${HOME}/.ecos_zsh" ] && . "${HOME}/.ecos_zsh" #ECCORE_ZSH' ".zshrc" 44 _init "${1}" '[ -r "${HOME}/.ecos_zsh" ] && . "${HOME}/.ecos_zsh" #ECCORE_ZSH' ".zshrc"
45 ;; 45 ;;
46 esac 46 esac