2013-05-02 23:36:55 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2013-05-03 10:58:55 +02:00
|
|
|
# Remove zsh completion dump
|
|
|
|
rm ~/.zcompdump
|
|
|
|
|
|
|
|
# Remove vim config directory
|
|
|
|
rm -rf ~/.vim-backup
|
|
|
|
mv ~/.vim ~/.vim-backup
|
|
|
|
mkdir -p ~/.vim/{autoload,bundle,colors,doc,ftplugin,plugin,spell,syntax}
|
|
|
|
|
|
|
|
# Install oh-my-zsh
|
2013-05-03 00:41:04 +02:00
|
|
|
rm -rf ~/.oh-my-zsh
|
|
|
|
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
|
|
|
|
|
2013-05-03 10:58:55 +02:00
|
|
|
# Copy the graphical part if needed
|
2013-05-02 23:36:55 +02:00
|
|
|
if [ "$1" == '--graphic' ]
|
|
|
|
then
|
|
|
|
rsync -av graphic/ ~/
|
|
|
|
fc-cache -vf ~/.fonts
|
|
|
|
fi
|
|
|
|
|
2013-05-03 10:58:55 +02:00
|
|
|
# Copy the common part
|
2013-05-02 23:36:55 +02:00
|
|
|
rsync -av common/ ~/
|
2013-05-03 10:58:55 +02:00
|
|
|
|
|
|
|
# Adjust the tmux conf
|
2013-05-02 23:36:55 +02:00
|
|
|
sed -i "s/REPLACEMEWITHFIRSTLETTEROFHOSTNAME/`expr substr \`hostname\` 1 1`/g" ~/.tmux.conf
|
2013-05-03 10:58:55 +02:00
|
|
|
|
|
|
|
######### VIM Config ###########
|
|
|
|
|
|
|
|
# Install pathogen
|
|
|
|
|
|
|
|
curl -Sso ~/.vim/autoload/pathogen.vim https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim
|
|
|
|
|
|
|
|
# Install jedi plugin for vim
|
|
|
|
rm -rf ~/.vim/bundle/jedi
|
|
|
|
git clone https://github.com/davidhalter/jedi-vim.git ~/.vim/bundle/jedi
|
|
|
|
|
|
|
|
# Install nerdtree for vim
|
|
|
|
rm -rf ~/.vim/bundle/nerdtree
|
|
|
|
git clone https://github.com/scrooloose/nerdtree.git ~/.vim/bundle/nerdtree
|
|
|
|
|
|
|
|
# Install xmledit for vim
|
|
|
|
rm -rf ~/.vim/bundle/xmledit
|
|
|
|
git clone https://github.com/sukima/xmledit.git ~/.vim/bundle/xmledit
|
|
|
|
pushd ~/.vim/bundle/xmledit
|
|
|
|
make install
|
|
|
|
popd
|
|
|
|
|
|
|
|
# Install pyflakes plugin
|
|
|
|
rm -rf ~/.vim/bundle/pyflakes
|
|
|
|
git clone --recursive git://github.com/kevinw/pyflakes-vim.git ~/.vim/bundle/pyflakes
|
|
|
|
|
|
|
|
# Install autoclose plugin
|
|
|
|
rm -rf ~/.vim/bundle/autoclose
|
|
|
|
git clone https://github.com/Townk/vim-autoclose.git ~/.vim/bundle/autoclose
|
|
|
|
|
|
|
|
# Install tagbar plugin
|
|
|
|
rm -rf ~/.vim/bundle/tagbar
|
|
|
|
git clone https://github.com/majutsushi/tagbar ~/.vim/bundle/tagbar
|
|
|
|
|
|
|
|
# Install vcscommand plugin
|
|
|
|
rm -rf ~/.vim/bundle/vcscommand
|
|
|
|
git clone https://github.com/vim-scripts/vcscommand.vim.git ~/.vim/bundle/vcscommand
|
|
|
|
|
|
|
|
# Install easytag plugin
|
|
|
|
rm -rf ~/.vim/bundle/easytag
|
|
|
|
git clone https://github.com/vim-scripts/easytags.vim.git ~/.vim/bundle/easytag
|
|
|
|
|
|
|
|
# Install closetag plugin
|
|
|
|
rm -rf ~/.vim/bundle/closetag
|
|
|
|
git clone https://github.com/vim-scripts/closetag.vim.git ~/.vim/bundle/closetag
|
|
|
|
|
|
|
|
# Install css3 syntax
|
|
|
|
rm -rf ~/.vim/bundle/css3-mod
|
|
|
|
git clone https://github.com/vim-scripts/css3-mod.git ~/.vim/bundle/css3-mod
|