dotfiles/install.sh

33 lines
1.0 KiB
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
2013-01-07 23:44:02 +01:00
sed -i -e 's/# CASE_SENSITIVE/CASE_SENSITIVE/' ~/.zshrc
2012-11-21 16:25:02 +01:00
echo "[ -e ~/.zshrc.local ] && source ~/.zshrc.local" >> ~/.zshrc
2012-11-23 15:35:01 +01:00
echo "zstyle ':vcs_info:*' enable hg bzr git svn" >> ~/.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:10:37 +01:00
cd ~/.dotfiles
2013-01-20 16:11:35 +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
2012-11-21 16:25:02 +01:00
# .gitignore
2012-11-21 18:05:14 +01:00
ln -sf ~/.dotfiles/gitignore ~/.gitignore