comparison setup @ 332:db66d53e10ea

Canonical name for configs.
author Edho Arief <edho@myconan.net>
date Mon, 19 Mar 2012 12:52:12 +0700
parents 795ad57794a6
children 94d0e4826d28
comparison
equal deleted inserted replaced
331:00777bea96fb 332:db66d53e10ea
19 } 19 }
20 20
21 _tcsh() { 21 _tcsh() {
22 case "$1" in 22 case "$1" in
23 uninstall|install) 23 uninstall|install)
24 _rc "${1}" "tcsh" ".ecos_tcsh" 24 _rc "${1}" "cshrc" ".ecos_tcsh"
25 _init "${1}" 'test -r "${HOME}/.ecos_tcsh" && source "${HOME}/.ecos_tcsh" #ECCORE_TCSH' ".cshrc" 25 _init "${1}" 'test -r "${HOME}/.ecos_tcsh" && source "${HOME}/.ecos_tcsh" #ECCORE_TCSH' ".cshrc"
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}" "bash" ".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}" "zsh" ".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
47 } 47 }
48 48
105 case "${1}" in 105 case "${1}" in
106 install|uninstall) 106 install|uninstall)
107 _tcsh "${1}" 107 _tcsh "${1}"
108 _bash "${1}" 108 _bash "${1}"
109 _zsh "${1}" 109 _zsh "${1}"
110 _rc "${1}" "tmux" ".tmux.conf" 110 _rc "${1}" "tmux.conf" ".tmux.conf"
111 _rc "${1}" "hg" ".hgrc" 111 _rc "${1}" "hgrc" ".hgrc"
112 _rc "${1}" "vimrc" ".vimrc" 112 _rc "${1}" "vimrc" ".vimrc"
113 _rc "${1}" "vim-solarized" ".vim/colors/solarized.vim" 113 _rc "${1}" "vim-solarized" ".vim/colors/solarized.vim"
114 _rc "${1}" "inputrc" ".inputrc" 114 _rc "${1}" "inputrc" ".inputrc"
115 _rc "${1}" "../bin" ".ecos_bin" 115 _rc "${1}" "../bin" ".ecos_bin"
116 ;; 116 ;;