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
|
|
|
|
2013-08-19 13:53:20 +02:00
|
|
|
# repos
|
2012-11-21 16:25:02 +01:00
|
|
|
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
|
2016-02-10 13:53:41 +01:00
|
|
|
if [ `whoami` = "f" ] || [ `whoami` = "ftpd" ] || [ `whoami` = "bartek.stalewski" ]; then
|
2013-08-19 13:53:20 +02:00
|
|
|
path="git@bitbucket.org:ftpd/dotfiles.git"
|
|
|
|
else
|
|
|
|
path="https://bitbucket.org/ftpd/dotfiles.git"
|
|
|
|
fi
|
|
|
|
git clone $path ~/.dotfiles
|
|
|
|
cd ~/.dotfiles
|
2013-08-19 14:09:43 +02:00
|
|
|
rm -rf ~/.vim/bundle/*
|
2013-08-19 13:53:20 +02:00
|
|
|
git submodule init
|
|
|
|
git submodule update
|
2013-08-19 14:09:43 +02:00
|
|
|
cd vim/bundle/nerdtree
|
|
|
|
git checkout master
|
|
|
|
cd ~/.dotfiles
|
2016-03-11 10:34:40 +01:00
|
|
|
#cd dircolors
|
|
|
|
#git checkout master
|
2013-08-19 13:53:20 +02:00
|
|
|
|
|
|
|
# files
|
|
|
|
|
|
|
|
## zsh
|
2012-11-21 16:25:02 +01:00
|
|
|
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
|
2016-06-03 14:15:22 +02:00
|
|
|
sed -i -e 's/ZSH_THEME="robbyrussell"/ZSH_THEME="agnoster"/' ~/.zshrc
|
2013-01-07 23:44:02 +01:00
|
|
|
sed -i -e 's/# CASE_SENSITIVE/CASE_SENSITIVE/' ~/.zshrc
|
2016-06-03 14:20:31 +02:00
|
|
|
echo 'export DEFAULT_USER=$LOGNAME' >> ~/.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
|
2013-10-23 02:56:54 +02:00
|
|
|
source ~/.zshrc
|
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
|
|
|
|
|
|
|
# .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
|