bootstrap/bootstrap-user.sh

23 lines
918 B
Bash
Raw Normal View History

2018-11-23 09:57:23 +01:00
#! /bin/bash
# fail immediately on error
set -e
2018-11-23 09:57:23 +01:00
TMPDIR=$(mktemp -u -p "$HOME" -d dotfiles.XXXXX) && \
git clone --separate-git-dir="$HOME/.cfg" https://github.com/schtobia/dotfiles.git "$TMPDIR" && \
[ -r "$TMPDIR/.gitmodules" ] && cp -vi "$TMPDIR/.gitmodules" "$HOME"
[ -d "$HOME/.cfg" ] && \
git --git-dir="$HOME/.cfg/" --work-tree="$HOME" config status.showUntrackedFiles no && \
(cd $HOME && \
git --git-dir="$HOME/.cfg/" --work-tree="$HOME" checkout -- . && \
git --git-dir="$HOME/.cfg/" --work-tree="$HOME" submodule update --init --remote --recursive --rebase)
rm -rf $TMPDIR
2019-02-07 11:32:04 +01:00
pip install --user -r https://github.com/schtobia/bootstrap/raw/master/requirements.txt
2018-11-23 09:57:23 +01:00
# vim related
2019-02-07 11:32:04 +01:00
npm install -g instant-markdown-d && \
2018-11-23 09:57:23 +01:00
nvim +PluginInstall +qall && \
(cd $HOME/.vim/bundle/Vundle.vim && git checkout master) && \
2019-03-18 07:04:15 +01:00
(cd $HOME/.vim/bundle/YouCompleteMe && ./install.py --clang-completer --ts-completer)
2019-02-07 11:32:04 +01:00