comparison setup @ 527:cb4e2a6595ea

Add ksh support.
author edogawaconan <me@myconan.net>
date Mon, 15 Sep 2014 14:46:50 +0900
parents bbcffc594d1e
children 77c1f9e624a3
comparison
equal deleted inserted replaced
526:f579b5310a1b 527:cb4e2a6595ea
51 case "${1}" in 51 case "${1}" in
52 uninstall|install) 52 uninstall|install)
53 _rc "${1}" "bashrc" ".ecos_bash" 53 _rc "${1}" "bashrc" ".ecos_bash"
54 _init "${1}" '[ -r "${HOME}/.ecos_bash" ] && . "${HOME}/.ecos_bash" #ECCORE_BASH' ".bash_profile" 54 _init "${1}" '[ -r "${HOME}/.ecos_bash" ] && . "${HOME}/.ecos_bash" #ECCORE_BASH' ".bash_profile"
55 _init "${1}" '[ -r "${HOME}/.ecos_bash" ] && . "${HOME}/.ecos_bash" #ECCORE_BASH' ".bashrc" 55 _init "${1}" '[ -r "${HOME}/.ecos_bash" ] && . "${HOME}/.ecos_bash" #ECCORE_BASH' ".bashrc"
56 ;;
57 esac
58 }
59
60 _ksh() {
61 case "${1}" in
62 uninstall|install)
63 _rc "${1}" "kshrc" ".ec.ksh"
64 _init "${1}" '[ -r "${HOME}/.ec.ksh" ] && . "${HOME}/.ec.ksh" #ECCORE_KSH' ".profile"
56 ;; 65 ;;
57 esac 66 esac
58 } 67 }
59 68
60 _zsh() { 69 _zsh() {
148 157
149 case "${1}" in 158 case "${1}" in
150 install|uninstall) 159 install|uninstall)
151 _tcsh "${1}" 160 _tcsh "${1}"
152 _bash "${1}" 161 _bash "${1}"
162 _ksh "${1}"
153 _zsh "${1}" 163 _zsh "${1}"
164 _rc "${1}" "shellinit-posix" ".ec.shellinit-posix"
154 _rc "${1}" "../bin" ".ecos_bin" 165 _rc "${1}" "../bin" ".ecos_bin"
155 _rc "${1}" "gemrc" ".gemrc" 166 _rc "${1}" "gemrc" ".gemrc"
156 _rc "${1}" "gitconfig" ".gitconfig" 167 _rc "${1}" "gitconfig" ".gitconfig"
157 _rc "${1}" "gitignore_global" ".gitignore_global" 168 _rc "${1}" "gitignore_global" ".gitignore_global"
158 _rc "${1}" "hgrc" ".hgrc" 169 _rc "${1}" "hgrc" ".hgrc"