#!/usr/bin/env bash # 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 rm -rf ~/.oh-my-zsh git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh mkdir -p ~/.oh-my-zsh/custom/plugins git clone git://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting touch ~/.zshrc-local pip3 install --upgrade --user jedi pip3 install --upgrade --user vdirsyncer pip3 install --upgrade --user khal pip3 install --upgrade --user git+git://github.com/Lokaltog/powerline pip2 install --upgrade --user git+git://github.com/Lokaltog/powerline pip2 install --upgrade --user pyCardDav pip3 install --upgrade --user pyCardDav mkdir -p ~/.config/pycard curl https://raw.github.com/geier/pycarddav/master/pycard.conf.sample > ~/.config/pycard/pycard.conf.sample # Copy the japanese part if needed if [ "$1" == '--jp' ] then rsync -av ./jp/ ~/ fi # Copy the graphical part if needed if [ "$1" == '--graphic' ] then rsync -av ./graphic/ ~/ fc-cache -vf ~/.fonts gsettings set org.gnome.desktop.interface gtk-theme "Numix" gsettings set org.gnome.desktop.wm.preferences theme "Numix" gsettings set org.gnome.desktop.interface icon-theme 'Numix' gsettings set org.gnome.desktop.interface font-name 'Ubuntu 9' gsettings set org.gnome.desktop.interface monospace-font-name 'Ubuntu Mono for Powerline 9' gsettings set org.gnome.desktop.interface buttons-have-icons true gconftool --type=string --set /desktop/cinnamon/windows/theme "Numix" gconftool-2 --type=string --set /apps/metacity/general/theme "Numix" gsettings set org.cinnamon.theme name 'Flatty flakes' #gsettings set org.cinnamon.desktop.background picture-uri "file://$HOME/.cinnamon/backgrounds/bg_fluffsplosion.jpeg" gsettings set org.cinnamon.desktop.background picture-options 'stretched' gsettings set org.cinnamon.desktop.background color-shading-type 'solid' gsettings set org.cinnamon.desktop.background primary-color '#000000' gsettings set org.cinnamon.desktop.background secondary-color '#000000' gsettings set org.cinnamon.desktop.interface gtk-theme "Numix" gsettings set org.cinnamon.desktop.interface icon-theme 'Numix' gsettings set org.cinnamon.desktop.interface font-name 'Ubuntu 9' gsettings set org.cinnamon.desktop.interface buttons-have-icons true gsettings set org.cinnamon.desktop.wm.preferences num-workspaces 4 gsettings set org.cinnamon.desktop.wm.preferences theme 'Numix' gsettings set org.cinnamon.desktop.wm.preferences titlebar-font 'Ubuntu Medium 10' gsettings set org.cinnamon.muffin.keybindings minimize "['r']" fi # Copy the common part rsync -av ./common/ ~/ # Adjust the tmux conf sed -i "s/REPLACEMEWITHFIRSTLETTEROFHOSTNAME/`expr substr \`hostname\` 1 1`/g" ~/.tmux.conf ######### VIM Config ########### # Install pathogen mkdir ~/.vim/autoload curl -Sso ~/.vim/autoload/pathogen.vim https://raw.githubusercontent.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 syntastic plugin rm -rf ~/.vim/bundle/syntastic git clone --recursive https://github.com/scrooloose/syntastic.git ~/.vim/bundle/syntastic # 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 # Remove 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/vim-css3-syntax git clone https://github.com/hail2u/vim-css3-syntax ~/.vim/bundle/vim-css3-syntax # Install less syntax rm -rf ~/.vim/bundle/vim-less git clone https://github.com/groenewege/vim-less.git ~/.vim/bundle/vim-less # Install notes plugin rm -rf ~/.vim/bundle/misc git clone https://github.com/xolox/vim-misc.git ~/.vim/bundle/misc rm -rf ~/.vim/bundle/notes git clone https://github.com/xolox/vim-notes.git ~/.vim/bundle/notes # Install better highlighting for Python rm -rf ~/.vim/bundle/python-syntax git clone https://github.com/hdima/python-syntax.git ~/.vim/bundle/python-syntax # Install better support of colorscheme rm -rf ~/.vim/bundle/csapprox git clone https://github.com/godlygeek/csapprox.git ~/.vim/bundle/csapprox # Install support of coffeescript rm -rf ~/.vim/bundle/coffeescript git clone https://github.com/kchmck/vim-coffee-script.git ~/.vim/bundle/coffeescript # Install of multiple cursors rm -rf ~/.vim/bundle/vim-multiple-cursors git clone https://github.com/terryma/vim-multiple-cursors.git ~/.vim/bundle/vim-multiple-cursors # Install of HTML5 colors rm -rf ~/.vim/bundle/html5.vim git clone https://github.com/othree/html5.vim.git ~/.vim/bundle/html5.vim # Install vim airline rm -rf ~/.vim/bundle/vim-airline git clone https://github.com/bling/vim-airline ~/.vim/bundle/vim-airline # Install fugitive rm -rf ~/.vim/bundle/fugitive git clone https://github.com/tpope/vim-fugitive.git ~/.vim/bundle/fugitive # Install vim lucius rm -rf ~/.vim/bundle/lucius git clone https://github.com/jonathanfilip/vim-lucius.git ~/.vim/bundle/lucius # Install vim renpy rm -rf ~/.vim/bundle/vim-renpy git clone https://github.com/chaimleib/vim-renpy ~/.vim/bundle/vim-renpy # Install tmux-airline generator rm -rf ~/.vim/bundle/tmuxline git clone https://github.com/edkolev/tmuxline.vim ~/.vim/bundle/tmuxline # Install promptline generator rm -rf ~/.vim/bundle/promptline git clone https://github.com/edkolev/promptline.vim ~/.vim/bundle/promptline # Install Alt mappings rm -rf ~/.vim/bundle/vim-alt-mappings git clone https://github.com/vim-utils/vim-alt-mappings.git ~/.vim/bundle/vim-alt-mappings