diff options
author | root <root@kremium> | 2011-12-01 20:59:27 +0100 |
---|---|---|
committer | root <root@kremium> | 2011-12-01 20:59:27 +0100 |
commit | 2d733f93b82a1c11a014af1a3dd07d3540282356 (patch) | |
tree | ec23111722523ec03ec7d35e708735cf787c6f79 /infest/profiles/makefu/bootstrap.sh | |
parent | bfa204a580a503a216cedbedd36586fb00458181 (diff) | |
parent | 4be0c81eafe0f315b91eb13d5d9aa8886faef308 (diff) |
Merge branch 'master' of http://github.com/krebscode/painload
Diffstat (limited to 'infest/profiles/makefu/bootstrap.sh')
-rwxr-xr-x | infest/profiles/makefu/bootstrap.sh | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/infest/profiles/makefu/bootstrap.sh b/infest/profiles/makefu/bootstrap.sh new file mode 100755 index 00000000..67122d0d --- /dev/null +++ b/infest/profiles/makefu/bootstrap.sh @@ -0,0 +1,44 @@ +#!/bin/sh +set -euf +cd $(readlink -f $(dirname $0)) +echo "* Using punani to install git vim and zsh" +../../../punani/bin/punani install git vim zsh + +# Backing up false positives +if [ -e $HOME/.vim ] ; then + echo "* Backing up old vim folder" + mv -v $HOME/.vim $HOME/.vim.`date +%Y%M%d` +fi + +# write dotfiles +for dotfile in $(ls .);do + [ "x./${dotfile}" = "x$0" ] && continue + cp -fr --remove-destination $dotfile $HOME/.$dotfile +done + +#install all the vim stuff with the help of vundle +cd $HOME/.vim +mkdir bundle +mkdir backup +echo "* Fetching vim-vundle" +git clone https://github.com/gmarik/vundle.git bundle/vundle > /dev/null && echo "Vim Vundle deployed" +echo "* Installing Vundle Bundles" +vim "+:BundleInstall" "+:qall" +cd - + + +if which zsh &>/dev/null ; then + if [ "x$SHELL" != "x`which zsh`" ] ;then + echo "* setting zsh as new shell,please enter your user password" + chsh -s `which zsh` + else + echo "* zsh already set as default shell" + fi + if [ ! -d ~/.oh-my-zsh ] ; then + git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh > /dev/null && echo "oh-my-zsh deployed" + else + echo "* oh-my-zsh already installed" + fi +else + echo "* cannot find zsh :(" +fi |