Adding install script.
This commit is contained in:
parent
1f1fcc9a74
commit
918dd07a81
29
install.sh
Normal file
29
install.sh
Normal file
@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
|
||||
# cleaning
|
||||
rm -rf ~/.dotfiles ~/.oh-my-zsh ~/.zshrc ~/.vim ~/.vimrc ~/.gvimrc
|
||||
|
||||
# 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
|
||||
path="https://ftpd@bitbucket.org/ftpd/dotfiles.git"
|
||||
|
||||
if [ `hostname` = "tuonela.local" ] && [ `whoami` = "ftpd" ]; then
|
||||
path="git@bitbucket.org:ftpd/dotfiles.git"
|
||||
fi
|
||||
git clone $path .dotfiles
|
||||
|
||||
# vim
|
||||
ln -s ~/.dotfiles/vim ~/.vim
|
||||
ln -s ~/.vim/rcfiles/vimrc ~/.vimrc
|
||||
ln -s ~/.vim/rcfiles/gvimrc ~/.gvimrc
|
||||
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
|
||||
ln -s ~/.dotfiles/gitignore ~/.gitignore
|
Loading…
Reference in New Issue
Block a user