Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 88 lines (57 sloc) 1.77 KB
#!/bin/sh
CUR=`pwd`
echo "~/.tools"
cp -Rf tools ~/.tools
ls -al ~/.tools
echo "~/.screenrc"
cp -f screenrc ~/.screenrc
if [ ! -e ~/.gitconfig.backup ]; then
echo "backup .gitconfig .."
mv -f ~/.gitconfig ~/.gitconfig.backup
fi
echo "~/.gitconfig"
cp -f gitconfig ~/.gitconfig
echo "Enter your name for git user.name:\c"
read GIT_USER_NAME
echo "Enter your email for git user.email:\c"
read GIT_USER_EMAIL
git config --global --replace-all user.name $GIT_USER_NAME
git config --global --replace-all user.email $GIT_USER_EMAIL
git config --global --replace-all core.excludesfile ~/.gitconfig
echo "~/.gitignore"
cp -f gitignore ~/.gitignore
echo "Installing zshkit"
rm -Rf ~/.zshkit
cp -Rf zshkit ~/.zshkit
~/.zshkit/install
echo "Adding homedir extra lines to ~/.zshrc"
cat zshrc_addons >> ~/.zshrc
echo "Done"
echo "Removing existing vim dotfiles"
if [ ! -e ~/.vim.backup ]; then
echo "backup .vim .."
mv -f ~/.vim ~/.vim.backup
fi
if [ ! -e ~/.vimrc.backup ]; then
echo "backup .vimrc .."
mv -f ~/.vimrc ~/.vimrc.backup
fi
rm -Rf ~/.vim
rm -f ~/.vimrc
echo ".vimrc"
cp -f vimrc ~/.vimrc
echo "Cloning akita vimfiles"
git clone git://github.com/akitaonrails/vimfiles.git ~/.vim
cd ~/.vim
echo "Updating submodules"
git submodule init
git submodule update
git submodule foreach git co master
git submodule foreach git pull
cd $CUR
echo "Patching vimfiles/vimrc"
cp patches/vimfiles-vimrc.patch ~/.vim/ && cd ~/.vim/ && cat vimfiles-vimrc.patch | patch && rm vimfiles-vimrc.patch && cd $CUR
echo "\nDone"
echo "To do local customization for zsh place code into ~/.zshrc.local\n\n"
echo "To patch vim syntastic plugin to support 1.9 syntax do:\n"
echo "cp patches/syntastic.patch ~/.vim/bundle/syntastic/ && cd ~/.vim/bundle/syntastic/ && cat syntastic.patch | patch -p\n"