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
|
2017-07-16 19:41:30 +02:00
|
|
|
mv ~/.mutt ~/.mutt-backup
|
|
|
|
mv ~/.muttrc ~/.muttrc.bk
|
|
|
|
|
2017-06-16 11:20:55 +02:00
|
|
|
mkdir -p ~/.vim/{autoload,pack/shapeshed/start,colors,doc,ftplugin,plugin,spell,syntax}
|
2017-07-16 19:41:30 +02:00
|
|
|
pushd ~/.vim/spell
|
|
|
|
wget -r -nH --cut-dirs=5 -nc ftp://ftp.vim.org//pub/vim/runtime/spell
|
|
|
|
popd
|
2013-05-03 10:58:55 +02:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
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 jedi plugin for vim
|
2017-06-16 11:20:55 +02:00
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/jedi
|
|
|
|
git clone https://github.com/davidhalter/jedi-vim.git ~/.vim/pack/shapeshed/start/jedi
|
2013-05-03 10:58:55 +02:00
|
|
|
|
|
|
|
# Install nerdtree for vim
|
2017-06-16 11:20:55 +02:00
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/nerdtree
|
|
|
|
git clone https://github.com/scrooloose/nerdtree.git ~/.vim/pack/shapeshed/start/nerdtree
|
2013-05-03 10:58:55 +02:00
|
|
|
|
|
|
|
# Install xmledit for vim
|
2017-06-16 11:20:55 +02:00
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/xmledit
|
|
|
|
git clone https://github.com/sukima/xmledit.git ~/.vim/pack/shapeshed/start/xmledit
|
|
|
|
pushd ~/.vim/pack/shapeshed/start/xmledit
|
2013-05-03 10:58:55 +02:00
|
|
|
make install
|
|
|
|
popd
|
|
|
|
|
2013-06-12 17:15:53 +02:00
|
|
|
# Install syntastic plugin
|
2017-06-16 11:20:55 +02:00
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/syntastic
|
|
|
|
git clone --recursive https://github.com/scrooloose/syntastic.git ~/.vim/pack/shapeshed/start/syntastic
|
2013-05-03 10:58:55 +02:00
|
|
|
|
|
|
|
# Install autoclose plugin
|
2017-06-16 11:20:55 +02:00
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/autoclose
|
|
|
|
git clone https://github.com/Townk/vim-autoclose.git ~/.vim/pack/shapeshed/start/autoclose
|
2013-05-03 10:58:55 +02:00
|
|
|
|
|
|
|
# Install tagbar plugin
|
2017-06-16 11:20:55 +02:00
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/tagbar
|
|
|
|
git clone https://github.com/majutsushi/tagbar ~/.vim/pack/shapeshed/start/tagbar
|
2013-05-03 10:58:55 +02:00
|
|
|
|
|
|
|
# Install vcscommand plugin
|
2017-06-16 11:20:55 +02:00
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/vcscommand
|
|
|
|
git clone https://github.com/vim-scripts/vcscommand.vim.git ~/.vim/pack/shapeshed/start/vcscommand
|
2013-05-03 10:58:55 +02:00
|
|
|
|
2017-07-16 19:41:30 +02:00
|
|
|
# Install easytag plugin
|
|
|
|
#rm -rf ~/.vim/pack/shapeshed/start/easytag
|
2017-06-16 11:20:55 +02:00
|
|
|
#git clone https://github.com/vim-scripts/easytags.vim.git ~/.vim/pack/shapeshed/start/easytag
|
2013-05-03 10:58:55 +02:00
|
|
|
|
|
|
|
# Install closetag plugin
|
2017-06-16 11:20:55 +02:00
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/closetag
|
|
|
|
git clone https://github.com/vim-scripts/closetag.vim.git ~/.vim/pack/shapeshed/start/closetag
|
2013-05-03 10:58:55 +02:00
|
|
|
|
|
|
|
# Install css3 syntax
|
2017-06-16 11:20:55 +02:00
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/vim-css3-syntax
|
|
|
|
git clone https://github.com/hail2u/vim-css3-syntax ~/.vim/pack/shapeshed/start/vim-css3-syntax
|
2013-05-19 16:12:30 +02:00
|
|
|
|
|
|
|
# Install less syntax
|
2017-06-16 11:20:55 +02:00
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/vim-less
|
|
|
|
git clone https://github.com/groenewege/vim-less.git ~/.vim/pack/shapeshed/start/vim-less
|
2013-09-11 13:58:00 +02:00
|
|
|
|
|
|
|
# Install notes plugin
|
2017-06-16 11:20:55 +02:00
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/misc
|
|
|
|
git clone https://github.com/xolox/vim-misc.git ~/.vim/pack/shapeshed/start/misc
|
2013-09-11 13:58:00 +02:00
|
|
|
|
2017-06-16 11:20:55 +02:00
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/notes
|
|
|
|
git clone https://github.com/xolox/vim-notes.git ~/.vim/pack/shapeshed/start/notes
|
2013-11-11 11:36:35 +01:00
|
|
|
|
|
|
|
# Install better highlighting for Python
|
2017-06-16 11:20:55 +02:00
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/python-syntax
|
|
|
|
git clone https://github.com/hdima/python-syntax.git ~/.vim/pack/shapeshed/start/python-syntax
|
2013-12-16 01:09:10 +01:00
|
|
|
|
|
|
|
# Install better support of colorscheme
|
2017-06-16 11:20:55 +02:00
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/csapprox
|
|
|
|
git clone https://github.com/godlygeek/csapprox.git ~/.vim/pack/shapeshed/start/csapprox
|
2014-02-14 00:32:15 +01:00
|
|
|
|
|
|
|
# Install support of coffeescript
|
2017-06-16 11:20:55 +02:00
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/coffeescript
|
|
|
|
git clone https://github.com/kchmck/vim-coffee-script.git ~/.vim/pack/shapeshed/start/coffeescript
|
2015-12-01 01:02:09 +01:00
|
|
|
|
|
|
|
# Install of multiple cursors
|
2017-06-16 11:20:55 +02:00
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/vim-multiple-cursors
|
|
|
|
git clone https://github.com/terryma/vim-multiple-cursors.git ~/.vim/pack/shapeshed/start/vim-multiple-cursors
|
2015-12-01 01:02:09 +01:00
|
|
|
|
|
|
|
# Install of HTML5 colors
|
2017-06-16 11:20:55 +02:00
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/html5.vim
|
|
|
|
git clone https://github.com/othree/html5.vim.git ~/.vim/pack/shapeshed/start/html5.vim
|
2015-12-01 01:02:09 +01:00
|
|
|
|
|
|
|
# Install vim airline
|
2017-06-16 11:20:55 +02:00
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/vim-airline
|
|
|
|
git clone https://github.com/vim-airline/vim-airline ~/.vim/pack/shapeshed/start/vim-airline
|
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/vim-airline-themes
|
|
|
|
git clone https://github.com/vim-airline/vim-airline-themes ~/.vim/pack/shapeshed/start/vim-airline-themes
|
2015-12-01 01:02:09 +01:00
|
|
|
|
|
|
|
# Install fugitive
|
2017-06-16 11:20:55 +02:00
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/fugitive
|
|
|
|
git clone https://github.com/tpope/vim-fugitive.git ~/.vim/pack/shapeshed/start/fugitive
|
2015-12-01 01:02:09 +01:00
|
|
|
|
|
|
|
# Install vim lucius
|
2017-06-16 11:20:55 +02:00
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/lucius
|
|
|
|
git clone https://github.com/jonathanfilip/vim-lucius.git ~/.vim/pack/shapeshed/start/lucius
|
2015-12-01 01:02:09 +01:00
|
|
|
|
|
|
|
# Install vim renpy
|
2017-06-16 11:20:55 +02:00
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/vim-renpy
|
|
|
|
git clone https://github.com/chaimleib/vim-renpy ~/.vim/pack/shapeshed/start/vim-renpy
|
2015-12-16 23:48:30 +01:00
|
|
|
|
|
|
|
# Install tmux-airline generator
|
2017-06-16 11:20:55 +02:00
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/tmuxline
|
|
|
|
git clone https://github.com/edkolev/tmuxline.vim ~/.vim/pack/shapeshed/start/tmuxline
|
2015-12-16 23:48:30 +01:00
|
|
|
|
|
|
|
# Install promptline generator
|
2017-06-16 11:20:55 +02:00
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/promptline
|
|
|
|
git clone https://github.com/edkolev/promptline.vim ~/.vim/pack/shapeshed/start/promptline
|
2016-01-20 13:04:47 +01:00
|
|
|
|
|
|
|
# Install Alt mappings
|
2017-07-16 19:41:30 +02:00
|
|
|
#rm -rf ~/.vim/pack/shapeshed/start/vim-alt-mappings
|
|
|
|
#git clone https://github.com/vim-utils/vim-alt-mappings.git ~/.vim/pack/shapeshed/start/vim-alt-mappings
|
2016-10-09 16:40:27 +02:00
|
|
|
|
|
|
|
# Install typescript for vim
|
2017-06-16 11:20:55 +02:00
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/typescript-vim
|
|
|
|
git clone https://github.com/leafgarland/typescript-vim.git ~/.vim/pack/shapeshed/start/typescript-vim
|
2017-01-29 14:42:54 +01:00
|
|
|
|
|
|
|
# Install languagetool for vim
|
2017-06-16 11:20:55 +02:00
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/languagetool
|
|
|
|
git clone https://github.com/vim-scripts/LanguageTool.git ~/.vim/pack/shapeshed/start/languagetool
|
2017-02-02 13:20:51 +01:00
|
|
|
|
|
|
|
# Install minimap for vim
|
2017-06-16 11:20:55 +02:00
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/vim-minimap
|
|
|
|
git clone https://github.com/severin-lemaignan/vim-minimap.git ~/.vim/pack/shapeshed/start/vim-minimap
|
2017-02-25 16:28:12 +01:00
|
|
|
|
2017-06-26 13:13:54 +02:00
|
|
|
# Install monochrome theme for vim
|
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/vim-monochrome
|
|
|
|
git clone https://github.com/fxn/vim-monochrome.git ~/.vim/pack/shapeshed/start/vim-monochrome
|
2017-07-16 19:41:30 +02:00
|
|
|
|
|
|
|
# Install vimagit
|
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/vimagit
|
|
|
|
git clone https://github.com/jreybert/vimagit ~/.vim/pack/shapeshed/start/vimagit
|
|
|
|
|
|
|
|
# Install Grammalecte
|
|
|
|
rm -rf ~/.vim/pack/shapeshed/start/vim-grammalecte
|
|
|
|
git clone https://github.com/dpelle/vim-Grammalecte.git ~/.vim/pack/shapeshed/start/vim-grammalecte
|
|
|
|
|
|
|
|
if [ -e ../homes-private/update-home.sh ]
|
|
|
|
then
|
|
|
|
source ../homes-private/update-home.sh
|
|
|
|
fi
|