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-12-16 01:09:10 +01:00
|
|
|
mkdir -p ~/.oh-my-zsh/custom/plugins
|
2013-12-16 11:40:02 +01:00
|
|
|
git clone git://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
|
2013-12-16 01:09:10 +01:00
|
|
|
|
2013-05-31 16:03:06 +02:00
|
|
|
touch ~/.zshrc-local
|
|
|
|
|
2013-09-11 13:58:00 +02:00
|
|
|
|
2014-11-25 13:12:37 +01:00
|
|
|
pip3 install --upgrade --user jedi
|
|
|
|
pip3 install --upgrade --user git+git://github.com/Lokaltog/powerline
|
2013-12-20 14:53:17 +01:00
|
|
|
pip install --upgrade --user pyCardDav
|
|
|
|
mkdir -p ~/.config/pycard
|
|
|
|
curl https://raw.github.com/geier/pycarddav/master/pycard.conf.sample > ~/.config/pycard/pycard.conf.sample
|
2013-09-11 13:58:00 +02:00
|
|
|
|
2014-06-08 18:45:21 +02:00
|
|
|
|
|
|
|
# Copy the japanese part if needed
|
|
|
|
if [ "$1" == '--jp' ]
|
|
|
|
then
|
|
|
|
rsync -av ./jp/ ~/
|
2014-06-08 19:58:35 +02:00
|
|
|
fi
|
2014-06-08 18:45:21 +02:00
|
|
|
|
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
|
2013-12-16 01:34:51 +01:00
|
|
|
rsync -av ./graphic/ ~/
|
2013-05-02 23:36:55 +02:00
|
|
|
fc-cache -vf ~/.fonts
|
2015-03-07 21:23:21 +01:00
|
|
|
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'
|
2014-02-13 23:37:29 +01:00
|
|
|
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
|
2015-03-07 21:23:21 +01:00
|
|
|
gconftool --type=string --set /desktop/cinnamon/windows/theme "Numix"
|
|
|
|
gconftool-2 --type=string --set /apps/metacity/general/theme "Numix"
|
2014-02-13 23:37:29 +01:00
|
|
|
gsettings set org.cinnamon.theme name 'Flatty flakes'
|
2014-10-10 10:20:59 +02:00
|
|
|
#gsettings set org.cinnamon.desktop.background picture-uri "file://$HOME/.cinnamon/backgrounds/bg_fluffsplosion.jpeg"
|
2014-02-15 10:03:08 +01:00
|
|
|
gsettings set org.cinnamon.desktop.background picture-options 'stretched'
|
2014-02-13 23:37:29 +01:00
|
|
|
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'
|
2015-03-07 21:23:21 +01:00
|
|
|
gsettings set org.cinnamon.desktop.interface gtk-theme "Numix"
|
|
|
|
gsettings set org.cinnamon.desktop.interface icon-theme 'Numix'
|
2014-02-13 23:37:29 +01:00
|
|
|
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
|
2015-03-07 21:23:21 +01:00
|
|
|
gsettings set org.cinnamon.desktop.wm.preferences theme 'Numix'
|
2014-02-13 23:37:29 +01:00
|
|
|
gsettings set org.cinnamon.desktop.wm.preferences titlebar-font 'Ubuntu Medium 10'
|
2014-02-14 00:43:45 +01:00
|
|
|
gsettings set org.cinnamon.muffin.keybindings minimize "['<Primary><Alt>r']"
|
2013-05-02 23:36:55 +02:00
|
|
|
fi
|
|
|
|
|
2013-05-03 10:58:55 +02:00
|
|
|
# Copy the common part
|
2013-12-16 01:34:51 +01: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
|
|
|
|
|
2013-10-10 16:17:34 +02:00
|
|
|
mkdir ~/.vim/autoload
|
2014-08-04 11:44:53 +02:00
|
|
|
curl -Sso ~/.vim/autoload/pathogen.vim https://raw.githubusercontent.com/tpope/vim-pathogen/master/autoload/pathogen.vim
|
2013-05-03 10:58:55 +02:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2013-06-12 17:15:53 +02:00
|
|
|
# Install syntastic plugin
|
|
|
|
rm -rf ~/.vim/bundle/syntastic
|
|
|
|
git clone --recursive https://github.com/scrooloose/syntastic.git ~/.vim/bundle/syntastic
|
2013-05-03 10:58:55 +02:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2013-09-11 13:58:00 +02:00
|
|
|
# Remove easytag plugin
|
2013-05-03 10:58:55 +02:00
|
|
|
rm -rf ~/.vim/bundle/easytag
|
2013-09-11 13:58:00 +02:00
|
|
|
#git clone https://github.com/vim-scripts/easytags.vim.git ~/.vim/bundle/easytag
|
2013-05-03 10:58:55 +02:00
|
|
|
|
|
|
|
# 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
|
2013-05-19 16:12:30 +02:00
|
|
|
|
|
|
|
# Install less syntax
|
|
|
|
rm -rf ~/.vim/bundle/vim-less
|
|
|
|
git clone https://github.com/groenewege/vim-less.git ~/.vim/bundle/vim-less
|
2013-09-11 13:58:00 +02:00
|
|
|
|
|
|
|
# Install notes plugin
|
2013-09-11 16:07:18 +02:00
|
|
|
rm -rf ~/.vim/bundle/misc
|
|
|
|
git clone https://github.com/xolox/vim-misc.git ~/.vim/bundle/misc
|
2013-09-11 13:58:00 +02:00
|
|
|
|
2013-09-11 16:07:18 +02:00
|
|
|
rm -rf ~/.vim/bundle/notes
|
|
|
|
git clone https://github.com/xolox/vim-notes.git ~/.vim/bundle/notes
|
2013-11-11 11:36:35 +01:00
|
|
|
|
|
|
|
# Install better highlighting for Python
|
|
|
|
rm -rf ~/.vim/bundle/python-syntax
|
|
|
|
git clone https://github.com/hdima/python-syntax.git ~/.vim/bundle/python-syntax
|
2013-12-16 01:09:10 +01:00
|
|
|
|
|
|
|
# Install better support of colorscheme
|
|
|
|
rm -rf ~/.vim/bundle/csapprox
|
|
|
|
git clone https://github.com/godlygeek/csapprox.git ~/.vim/bundle/csapprox
|
2014-02-14 00:32:15 +01:00
|
|
|
|
|
|
|
# Install support of coffeescript
|
|
|
|
rm -rf ~/.vim/bundle/coffeescript
|
|
|
|
git clone https://github.com/kchmck/vim-coffee-script.git ~/.vim/bundle/coffeescript
|