removed bundles and bash magic, start on install script

This commit is contained in:
2012-05-06 13:05:52 -07:00
parent 39f1a06eb6
commit 8ca6d2b0d9
131 changed files with 50 additions and 12264 deletions

50
install.sh Normal file → Executable file
View File

@@ -1,3 +1,53 @@
#!/bin/bash
#configure vim bundles
VIM_BUNDLES=(
'https://github.com/vim-scripts/phpfolding.vim.git'
'https://github.com/msanders/snipmate.vim.git'
'https://github.com/scrooloose/syntastic.git'
'https://github.com/kchmck/vim-coffee-script.git'
'https://github.com/altercation/vim-colors-solarized.git'
'https://github.com/digitaltoad/vim-jade.git'
'https://github.com/wavded/vim-stylus.git'
'https://github.com/tpope/vim-surround.git'
)
#check for git
GIT=$(which git)
if [ ! $? == 0 ]; then
echo "You must install git and add it to you PATH"
exit 1
fi
ROOT=`pwd`
###
# bash_magic
###
#clone repo
$GIT clone https://github.com/Knewton/bash_magic.git bash/bash_magic
#install
cd "bash/bash_magic"
mkdir "${HOME}/.bash_aliases.d" "${HOME}/.bash_completion.d" "${HOME}/.bash_functions.d"
cd "bash_aliases.d"
ln -s color.sh refresh.sh "${HOME}/.bash_aliases.d"
cd "../bash_completion.d"
ln -s etc.sh "${HOME}/.bash_completion.d"
cd "../bash_functions.d"
ln -s completion.sh extract.sh lsbytes.sh lsnew.sh vim.sh "${HOME}/.bash_functions.d"
cd "${ROOT}"
###
# vim
###
#clone bundle repos
cd "vim/bundle"
for b in ${VIM_BUNDLES[@]}; do
$GIT clone "${b}"
done
cd "${ROOT}"
#install
echo "not finished, check back later"