dotfiles/install.sh

30 lines
893 B
Bash
Raw Normal View History

2012-11-21 16:25:02 +01:00
#!/bin/sh
# cleaning
2012-11-21 18:05:14 +01:00
rm -rf ~/.dotfiles ~/.oh-my-zsh ~/.zshrc ~/.vim ~/.vimrc ~/.gvimrc ~/.gitignore
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
echo "[ -e ~/.zshrc.local ] && source ~/.zshrc.local" >> ~/.zshrc
# 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
if [ `hostname` = "tuonela.local" ] && [ `whoami` = "ftpd" ]; then
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/*
git clone git://github.com/Lokaltog/vim-powerline.git ~/.vim/bundle/powerline
git clone git://github.com/scrooloose/nerdtree.git ~/.vim/bundle/nerdtree
# .gitignore
2012-11-21 18:05:14 +01:00
ln -sf ~/.dotfiles/gitignore ~/.gitignore