2012-11-21 16:25:02 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# cleaning
|
2013-08-19 11:42:09 +02:00
|
|
|
rm -rf ~/.dotfiles ~/.oh-my-zsh ~/.zshrc ~/.vim ~/.vimrc ~/.gvimrc ~/.gitignore ~/.tmux.conf
|
2012-11-21 16:25:02 +01:00
|
|
|
|
|
|
|
# zsh
|
|
|
|
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
|
|
|
|
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
|
|
|
|
sed -i -e 's/robbyrussell/nicoulaj/' ~/.zshrc
|
2013-01-07 23:44:02 +01:00
|
|
|
sed -i -e 's/# CASE_SENSITIVE/CASE_SENSITIVE/' ~/.zshrc
|
2013-08-19 13:04:43 +02:00
|
|
|
echo '$eval $( gdircolors -b ~/.dotfiles/dircolors ) ' >> ~/.zshrc
|
2012-11-23 15:35:01 +01:00
|
|
|
echo "zstyle ':vcs_info:*' enable hg bzr git svn" >> ~/.zshrc
|
2013-08-19 12:57:01 +02:00
|
|
|
echo "[ -e ~/.zshrc.local ] && source ~/.zshrc.local" >> ~/.zshrc
|
2012-11-21 16:25:02 +01:00
|
|
|
|
|
|
|
# ftpd/doftiles
|
2012-11-22 12:05:09 +01:00
|
|
|
path="https://bitbucket.org/ftpd/dotfiles.git"
|
2012-11-21 16:25:02 +01:00
|
|
|
|
2013-01-20 16:09:12 +01:00
|
|
|
if [ `hostname` = "tuonela" ] && [ `whoami` = "bartek.stalewski" ]; then
|
2012-11-21 16:25:02 +01:00
|
|
|
path="git@bitbucket.org:ftpd/dotfiles.git"
|
|
|
|
fi
|
2012-11-23 10:48:55 +01:00
|
|
|
git clone $path ~/.dotfiles
|
2012-11-21 16:25:02 +01:00
|
|
|
|
|
|
|
# vim
|
2012-11-21 18:05:14 +01:00
|
|
|
ln -sf ~/.dotfiles/vim ~/.vim
|
|
|
|
ln -sf ~/.vim/rcfiles/vimrc ~/.vimrc
|
|
|
|
ln -sf ~/.vim/rcfiles/gvimrc ~/.gvimrc
|
2012-11-21 16:25:02 +01:00
|
|
|
rm -rf ~/.vim/bundle/*
|
2013-01-20 16:15:01 +01:00
|
|
|
#git submodule add git://github.com/Lokaltog/vim-powerline.git vim/bundle/powerline
|
|
|
|
#git submodule add git://github.com/scrooloose/nerdtree.git vim/bundle/nerdtree
|
2013-01-20 16:21:26 +01:00
|
|
|
cd ~/.dotfiles
|
|
|
|
git submodule init
|
|
|
|
git submodule update
|
2013-01-20 16:40:45 +01:00
|
|
|
cd vim/bundle/powerline
|
|
|
|
git checkout -b develop origin/develop
|
2012-11-21 16:25:02 +01:00
|
|
|
|
|
|
|
# .gitignore
|
2012-11-21 18:05:14 +01:00
|
|
|
ln -sf ~/.dotfiles/gitignore ~/.gitignore
|
2013-08-19 11:42:09 +02:00
|
|
|
|
|
|
|
# tmux
|
|
|
|
ln -sf ~/.dotfiles/tmux.conf ~/.tmux.conf
|