add autoinstall of vundle plugins
This commit is contained in:
parent
7ba87a776f
commit
d2a57cd443
1 changed files with 15 additions and 5 deletions
20
setup.sh
20
setup.sh
|
@ -12,9 +12,19 @@ ln -s ~/.dotfiles/.zshrc ~/.zshrc
|
||||||
ln -s ~/.dotfiles/.vim ~/.vim
|
ln -s ~/.dotfiles/.vim ~/.vim
|
||||||
ln -s ~/.dotfiles/tmux.conf ~/.tmux.conf
|
ln -s ~/.dotfiles/tmux.conf ~/.tmux.conf
|
||||||
|
|
||||||
# install vundle
|
|
||||||
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
|
|
||||||
|
|
||||||
# next steps:
|
# install vundle
|
||||||
# - chage oh-my-zsh home directory
|
if ! [ -d ~/.vim/bundle/Vundle.vim ]; then
|
||||||
# - install Vundle plugins from inside vim :PluginInstall
|
echo '[INFO] Installing Vundle...'
|
||||||
|
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
|
||||||
|
else
|
||||||
|
echo '[INFO] Vundle is already installed.'
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Install vundle Plugins
|
||||||
|
if commandExists vim; then
|
||||||
|
echo '[INFO] Installing vim plugins via Vundle...'
|
||||||
|
vim +PluginInstall +qall
|
||||||
|
else
|
||||||
|
echo '[INFO] Vim is not installed, could not install the plugins.'
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue