1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:00:04 +08:00

Auto install packge manager

This commit is contained in:
wsdjeg 2017-07-21 06:55:24 +08:00
parent 26a95a683f
commit 70bece9367

View File

@ -79,6 +79,14 @@ install_vim () {
fi
}
install_package_manager () {
if [[ ! -d "$HOME/.cache/vimfiles/repos/github.com/Shougo/dein.vim" ]]; then
info "Install dein.vim"
git clone https://github.com/Shougo/dein.vim.git $HOME/.cache/vimfiles/repos/github.com/Shougo/dein.vim
success "dein.vim installation done"
fi
}
install_neovim () {
if [[ -d "$HOME/.config/nvim" ]]; then
if [[ "$(readlink $HOME/.config/nvim)" =~ \.SpaceVim$ ]]; then
@ -238,3 +246,4 @@ need_cmd 'git'
fetch_repo
install_vim
install_neovim
install_package_manager