mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 13:35:42 -07:00
Add Vundle
This commit is contained in:
20
install.sh
20
install.sh
@@ -11,6 +11,11 @@ if [ ! -d $BASEDIR ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
function prerequisites {
|
function prerequisites {
|
||||||
|
# Prerequisites require git
|
||||||
|
if ! which git > /dev/null ; then
|
||||||
|
echo 'No git, not installing extras.' > /dev/stderr
|
||||||
|
return
|
||||||
|
fi
|
||||||
if which zsh > /dev/null ; then
|
if which zsh > /dev/null ; then
|
||||||
chsh -s `which zsh`
|
chsh -s `which zsh`
|
||||||
if [ ! -d $HOME/.oh-my-zsh ] ; then
|
if [ ! -d $HOME/.oh-my-zsh ] ; then
|
||||||
@@ -19,6 +24,13 @@ function prerequisites {
|
|||||||
else
|
else
|
||||||
echo "ZSH not found!" > /dev/stderr
|
echo "ZSH not found!" > /dev/stderr
|
||||||
fi
|
fi
|
||||||
|
if which vim > /dev/null ; then
|
||||||
|
mkdir -p $HOME/.vim/bundle
|
||||||
|
if [ ! -d $HOME/.vim/bundle/Vundle.vim ] ; then
|
||||||
|
git clone https://github.com/VundleVim/Vundle.vim.git \
|
||||||
|
$HOME/.vim/bundle/Vundle.vim
|
||||||
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function install_dir {
|
function install_dir {
|
||||||
@@ -35,6 +47,14 @@ function install_dir {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function postinstall {
|
||||||
|
# Install Vundle plugins
|
||||||
|
if [ -d $HOME/.vim/bundle/Vundle.vim ] ; then
|
||||||
|
vim +VundleInstall +qall
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
prerequisites
|
prerequisites
|
||||||
install_dir "${BASEDIR}"
|
install_dir "${BASEDIR}"
|
||||||
test -d "${BASEDIR}/private_dotfiles" && install_dir "${BASEDIR}/private_dotfiles"
|
test -d "${BASEDIR}/private_dotfiles" && install_dir "${BASEDIR}/private_dotfiles"
|
||||||
|
postinstall
|
||||||
|
|||||||
Reference in New Issue
Block a user