Mercurial > ec-dotfiles
comparison setup @ 704:1e0f578f6752
Update vendor and add support for vim packs
author | nanaya <me@nanaya.net> |
---|---|
date | Sun, 18 Dec 2022 20:06:46 +0900 |
parents | a9fbb21ab09c |
children | 500c3e9bf73f |
comparison
equal
deleted
inserted
replaced
703:b7cd7465cc26 | 704:1e0f578f6752 |
---|---|
169 _echon "[${file_name}]" | 169 _echon "[${file_name}]" |
170 _rc "${1}" "../vendor/vim-${x}/${dir_name}/${file_name}" ".vim/${x}/${dir_name}/${file_name}" > /dev/null | 170 _rc "${1}" "../vendor/vim-${x}/${dir_name}/${file_name}" ".vim/${x}/${dir_name}/${file_name}" > /dev/null |
171 done | 171 done |
172 done | 172 done |
173 _echo ...done | 173 _echo ...done |
174 } | |
175 | |
176 _vim_packs() { | |
177 case "${1}" in | |
178 install) _echon "Symlinking vim packs...";; | |
179 uninstall) _echon "Removing vim packs...";; | |
180 esac | |
181 | |
182 for i in "${basedir}/vendor/vim-packs"/*; do | |
183 pack_name="`basename "/${i}"`" | |
184 _echon "[${pack_name}]" | |
185 _rc "${1}" "../vendor/vim-packs/${pack_name}" ".vim/pack/default/opt/${pack_name}" > /dev/null | |
186 done | |
174 } | 187 } |
175 | 188 |
176 _upgrade() { | 189 _upgrade() { |
177 for i in bash bash.after bash.before bin tcsh tcsh.after tcsh.before zsh zsh.after zsh.before; do | 190 for i in bash bash.after bash.before bin tcsh tcsh.after tcsh.before zsh zsh.after zsh.before; do |
178 src="${HOME}/.ecos_${i}" | 191 src="${HOME}/.ecos_${i}" |
211 _rc "${1}" "inputrc" ".inputrc" | 224 _rc "${1}" "inputrc" ".inputrc" |
212 _tmux "${1}" | 225 _tmux "${1}" |
213 _vim_x "${1}" autoload | 226 _vim_x "${1}" autoload |
214 _vim_x "${1}" colors | 227 _vim_x "${1}" colors |
215 _vim_x "${1}" syntax | 228 _vim_x "${1}" syntax |
229 _vim_packs "${1}" | |
216 _rc "${1}" "vimrc" ".vimrc" | 230 _rc "${1}" "vimrc" ".vimrc" |
217 _rc "${1}" "irbrc" ".irbrc" | 231 _rc "${1}" "irbrc" ".irbrc" |
218 ;; | 232 ;; |
219 *) | 233 *) |
220 _help | 234 _help |