comparison setup @ 743:2b0112948102 default tip

[vim] better viminfo location
author nanaya <me@nanaya.net>
date Mon, 03 Feb 2025 18:34:55 +0900
parents 3b001c615c36
children
comparison
equal deleted inserted replaced
742:3b001c615c36 743:2b0112948102
131 131
132 _touch() { 132 _touch() {
133 test "${1}" = "uninstall" && return 133 test "${1}" = "uninstall" && return
134 shift 134 shift
135 135
136 touch "${@}" 136 _target="${HOME}/${1}"
137 _echo "Ensured existence of ${*}" 137 mkdir -p "${_target%/*}"
138 touch "${_target}"
139 _echo "Ensured existence of ${_target}"
138 } 140 }
139 141
140 _vim_x() { 142 _vim_x() {
141 case "${1}" in 143 case "${1}" in
142 install) _echon "Copying";; 144 install) _echon "Copying";;
208 _rc "${1}" "../bin" ".ec.bin" 210 _rc "${1}" "../bin" ".ec.bin"
209 _rc "${1}" "gemrc" ".gemrc" 211 _rc "${1}" "gemrc" ".gemrc"
210 _rc "${1}" "gitconfig" ".config/git/config" 212 _rc "${1}" "gitconfig" ".config/git/config"
211 _rc "${1}" "gitignore_global" ".config/git/ignore" 213 _rc "${1}" "gitignore_global" ".config/git/ignore"
212 _rc "${1}" "hgrc" ".config/hg/hgrc" 214 _rc "${1}" "hgrc" ".config/hg/hgrc"
213 _touch "${1}" "${HOME}/.config/hg/hgrc.local" 215 _touch "${1}" ".config/hg/hgrc.local"
214 _rc "${1}" "hgignore_global" ".config/hg/ignore" 216 _rc "${1}" "hgignore_global" ".config/hg/ignore"
215 _touch "${1}" "${HOME}/.config/hg/ignore.local" 217 _touch "${1}" ".config/hg/ignore.local"
216 _rc "${1}" "editrc" ".editrc" 218 _rc "${1}" "editrc" ".editrc"
217 _rc "${1}" "inputrc" ".inputrc" 219 _rc "${1}" "inputrc" ".inputrc"
218 _rc "${1}" "tmux.conf" ".config/tmux/tmux.conf" 220 _rc "${1}" "tmux.conf" ".config/tmux/tmux.conf"
219 _vim_x "${1}" syntax 221 _vim_x "${1}" syntax
220 _vim_packs "${1}" 222 _vim_packs "${1}"
221 _rc "${1}" "vimrc" ".vim/vimrc" 223 _rc "${1}" "vimrc" ".vim/vimrc"
224 _touch "${1}" ".local/state/vim/viminfo"
222 _rc "${1}" "irbrc" ".config/irb/irbrc" 225 _rc "${1}" "irbrc" ".config/irb/irbrc"
223 ;; 226 ;;
224 *) 227 *)
225 _help 228 _help
226 ;; 229 ;;