comparison setup @ 580:5a0f3d427979

Change touch function to noop when uninstalling
author nanaya <me@myconan.net>
date Sun, 11 Oct 2015 04:11:49 +0900
parents fd416344f175
children b9672858e2e2
comparison
equal deleted inserted replaced
579:fd416344f175 580:5a0f3d427979
124 ;; 124 ;;
125 esac 125 esac
126 } 126 }
127 127
128 _touch() { 128 _touch() {
129 test "${1}" = "uninstall" && return
130 shift
131
129 touch "${@}" 132 touch "${@}"
130 _echo "Ensured existence of ${@}" 133 _echo "Ensured existence of ${@}"
131 } 134 }
132 135
133 _tmux() { 136 _tmux() {
199 _rc "${1}" "../bin" ".ec.bin" 202 _rc "${1}" "../bin" ".ec.bin"
200 _rc "${1}" "gemrc" ".gemrc" 203 _rc "${1}" "gemrc" ".gemrc"
201 _rc "${1}" "gitconfig" ".gitconfig" 204 _rc "${1}" "gitconfig" ".gitconfig"
202 _rc "${1}" "gitignore_global" ".gitignore_global" 205 _rc "${1}" "gitignore_global" ".gitignore_global"
203 _rc "${1}" "hgrc" ".hgrc" 206 _rc "${1}" "hgrc" ".hgrc"
204 _touch "${HOME}/.hgrc.local" 207 _touch "${1}" "${HOME}/.hgrc.local"
205 _rc "${1}" "hgignore_global" ".hgignore_global" 208 _rc "${1}" "hgignore_global" ".hgignore_global"
206 _touch "${HOME}/.hgignore_global.local" 209 _touch "${1}" "${HOME}/.hgignore_global.local"
207 _rc "${1}" "inputrc" ".inputrc" 210 _rc "${1}" "inputrc" ".inputrc"
208 _tmux "${1}" 211 _tmux "${1}"
209 _rc "${1}" "vim-vividchalk" ".vim/colors/vividchalk.vim" 212 _rc "${1}" "vim-vividchalk" ".vim/colors/vividchalk.vim"
210 _vim_syntax "${1}" 213 _vim_syntax "${1}"
211 _vim_autoload "${1}" 214 _vim_autoload "${1}"