diff options
author | makefu <github@syntax-fehler.de> | 2011-11-29 16:58:30 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2011-11-29 16:58:30 +0100 |
commit | ed55e0bc475e77c20eb25f09df8c1b13c415d69f (patch) | |
tree | 6581d1a4f6f3f59779a1148880b3b23c89aef428 /infest/profiles/makefu/bootstrap.sh | |
parent | df68b03094570c25e9f0a337d162c9be8b98a75c (diff) |
//infest: add makefu profile
Diffstat (limited to 'infest/profiles/makefu/bootstrap.sh')
-rwxr-xr-x | infest/profiles/makefu/bootstrap.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/infest/profiles/makefu/bootstrap.sh b/infest/profiles/makefu/bootstrap.sh new file mode 100755 index 00000000..e4bad93e --- /dev/null +++ b/infest/profiles/makefu/bootstrap.sh @@ -0,0 +1,31 @@ +#!/bin/sh +set -xeuf + +cd $(readlink -f $(dirname $0)) + +# Backing up false positives +if [ -e $HOME/.vim ] ; then + echo "Backing up old vim folder" + mv $HOME/.vim $HOME/.vim.`date +%Y%M%d` +fi + +# write dotfiles +for dotfile in $(ls .);do + [ "./$dotfile" == "$0" ] && continue + cp -fr --remove-destination $dotfile $HOME/.$dotfile +done + +#vim vundle +cd $HOME/.vim +mkdir bundle +mkdir backup +[ -d bundle/vundle ] || \ + git clone https://github.com/gmarik/vundle.git bundle/vundle +cd - + +vim "+:BundleInstall" "+:qall" + +#oh-my-zsh +chsh -s `which zsh` +[ -d ~/.oh-my-zsh ] || \ + git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh |