mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 17:49:57 +08:00
Auto install packge manager
This commit is contained in:
parent
26a95a683f
commit
70bece9367
@ -79,6 +79,14 @@ install_vim () {
|
|||||||
fi
|
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 () {
|
install_neovim () {
|
||||||
if [[ -d "$HOME/.config/nvim" ]]; then
|
if [[ -d "$HOME/.config/nvim" ]]; then
|
||||||
if [[ "$(readlink $HOME/.config/nvim)" =~ \.SpaceVim$ ]]; then
|
if [[ "$(readlink $HOME/.config/nvim)" =~ \.SpaceVim$ ]]; then
|
||||||
@ -238,3 +246,4 @@ need_cmd 'git'
|
|||||||
fetch_repo
|
fetch_repo
|
||||||
install_vim
|
install_vim
|
||||||
install_neovim
|
install_neovim
|
||||||
|
install_package_manager
|
||||||
|
Loading…
x
Reference in New Issue
Block a user