summaryrefslogtreecommitdiffstats
path: root/ship/src/bootstrap_env_makefu
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2014-03-07 15:51:36 +0100
committermakefu <github@syntax-fehler.de>2014-03-07 15:51:36 +0100
commitd090f6563fd45a0fcae59cf7fc5730e257facc8c (patch)
treeb86a77df748fd2431c74812cca6b5b33f43baaa0 /ship/src/bootstrap_env_makefu
parentf91c15a6ac8e94dae54f4cdaa93defd3f7006226 (diff)
parentc48ee1d169a77902442639f6bc48d0a7b291eafb (diff)
Merge branch 'master' of ssh://github.com/krebscode/painload
Diffstat (limited to 'ship/src/bootstrap_env_makefu')
-rwxr-xr-xship/src/bootstrap_env_makefu27
1 files changed, 23 insertions, 4 deletions
diff --git a/ship/src/bootstrap_env_makefu b/ship/src/bootstrap_env_makefu
index 44148665..6c75cd57 100755
--- a/ship/src/bootstrap_env_makefu
+++ b/ship/src/bootstrap_env_makefu
@@ -5,12 +5,23 @@
#@include core
#@include punani
#@include vim
+
+# vim +python
+_punanidb_pacman_vim_python=gvim
+_punanidb_yum_vim_python=vim-enhanced
+_punanidb_aptget_vim_python=vim
+
+# TODO pull out youcompleteme into a vim function
+# cmake ,make,g++,python-dev for youcompleteme
+_punanidb_pacman_cmake=cmake
+_punanidb_yum_cmake=cmake
+_punanidb_aptget_cmake=cmake
#@mainifyme
info "Configuring environment for $(id -un)"
cd $(readlink -f $(dirname $0))
info "Using punani to install git vim and zsh"
-punani install git vim zsh || error "cannot install some shit"
+punani install git vim_python zsh gpp cmake make python2_dev || die "cannot install some shit"
info "writing dotfiles"
# deploying zshrc
@@ -100,19 +111,27 @@ set spelllang=en
set textwidth=9001
autocmd BufRead *.json set filetype=json
EOF
-
+if [ -e $HOME/.vimrc ] ; then
+ oldvim=$HOME/.vimrc.`date +%Y%M%d`
+ info "Backing up old vimrc file to $oldvim"
+ mv -v $HOME/.vimrc $oldvim
+fi
+info "Symlinking .vimrc to .vim/vimrc"
ln -vs $HOME/.vim/vimrc $HOME/.vimrc
vim_conf_sane_defaults
#install all the vim stuff with the help of vundle
cd $HOME/.vim
-mkdir bundle
-mkdir backup
+mkdir -p bundle
info "Fetching vim-vundle"
git clone https://github.com/gmarik/vundle.git bundle/vundle > /dev/null && \
info "Vim Vundle deployed"
info "Installing Vundle Bundles"
vim "+:BundleInstall" "+:qall"
+
+info "building youcompleteme libs"
+cd $HOME/.vim/bundle/YouCompleteMe
+./install.sh
cd -
info "configuring zsh"