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) && \
|
2021-02-23 09:22:10 +01:00
|
|
|
git clone --separate-git-dir="$HOME/.cfg" https://gitlab.com/schtobia/dotfiles.git "$TMPDIR" && \
|
2018-11-23 09:57:23 +01:00
|
|
|
[ -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
|
|
|
|
2021-02-23 09:22:10 +01:00
|
|
|
pip install --user -r https://gitlab.com/schtobia/bootstrap/raw/master/requirements.txt
|
2019-02-07 11:32:04 +01:00
|
|
|
|
2018-11-23 09:57:23 +01:00
|
|
|
# vim related
|
2019-02-07 11:32:04 +01:00
|
|
|
npm install -g instant-markdown-d && \
|
2021-09-07 14:50:04 +02:00
|
|
|
nvim +PluginInstall +UpdateRemotePlugins +qall
|