comparison setup @ 501:072662ced8b8

Per-version tmux config.
author edogawaconan <me@myconan.net>
date Sun, 09 Mar 2014 14:11:47 +0900
parents 347e30690879
children e2b52663763b
comparison
equal deleted inserted replaced
500:faf6bc91feb5 501:072662ced8b8
119 _touch() { 119 _touch() {
120 touch "${@}" 120 touch "${@}"
121 _echo "Ensured existence of ${@}" 121 _echo "Ensured existence of ${@}"
122 } 122 }
123 123
124 _tmux() {
125 # Remove old tmux config.
126 _rc uninstall "tmux.conf" ".tmux.conf"
127 for tmux_conf in "${rcdir}/tmux-"*.conf; do
128 tmux_conf_file="${tmux_conf##*/}"
129 _rc "${1}" "${tmux_conf_file}" ".${tmux_conf_file}"
130 done
131 }
132
124 _help() { 133 _help() {
125 cat <<EOF 134 cat <<EOF
126 Usage: ${0} [install|uninstall] 135 Usage: ${0} [install|uninstall]
127 EOF 136 EOF
128 } 137 }
139 _rc "${1}" "hgrc" ".hgrc" 148 _rc "${1}" "hgrc" ".hgrc"
140 _touch "${HOME}/.hgrc.local" 149 _touch "${HOME}/.hgrc.local"
141 _rc "${1}" "hgignore_global" ".hgignore_global" 150 _rc "${1}" "hgignore_global" ".hgignore_global"
142 _touch "${HOME}/.hgignore_global.local" 151 _touch "${HOME}/.hgignore_global.local"
143 _rc "${1}" "inputrc" ".inputrc" 152 _rc "${1}" "inputrc" ".inputrc"
144 _rc "${1}" "tmux.conf" ".tmux.conf" 153 _tmux "${1}"
145 _rc "${1}" "vim-solarized" ".vim/colors/solarized.vim" 154 _rc "${1}" "vim-solarized" ".vim/colors/solarized.vim"
146 _rc "${1}" "vim-syntax-coffee" ".vim/syntax/coffee.vim" 155 _rc "${1}" "vim-syntax-coffee" ".vim/syntax/coffee.vim"
147 _rc "${1}" "vim-syntax-json" ".vim/syntax/json.vim" 156 _rc "${1}" "vim-syntax-json" ".vim/syntax/json.vim"
148 _rc "${1}" "vim-syntax-scss" ".vim/syntax/scss.vim" 157 _rc "${1}" "vim-syntax-scss" ".vim/syntax/scss.vim"
149 _rc "${1}" "vim-syntax-slim" ".vim/syntax/slim.vim" 158 _rc "${1}" "vim-syntax-slim" ".vim/syntax/slim.vim"