2018-11-23 09:57:23 +01:00
|
|
|
#! /bin/bash
|
2018-11-23 10:17:31 +01:00
|
|
|
# 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 && \
|
2021-02-12 07:40:57 +01:00
|
|
|
(cd "$HOME" && \
|
2018-11-23 09:57:23 +01:00
|
|
|
git --git-dir="$HOME/.cfg/" --work-tree="$HOME" checkout -- . && \
|
|
|
|
git --git-dir="$HOME/.cfg/" --work-tree="$HOME" submodule update --init --remote --recursive --rebase)
|
2021-02-12 07:40:57 +01:00
|
|
|
rm -rf "$TMPDIR"
|
2018-11-23 09:57:23 +01:00
|
|
|
|
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 && \
|
2019-06-13 11:01:20 +02:00
|
|
|
nvim +PluginInstall +qall
|