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
|
|
|
|
2022-05-16 14:30:14 +02:00
|
|
|
pip install --user -r https://gitlab.com/schtobia/bootstrap/raw/master/requirements.txt &&
|
2022-11-22 20:53:23 +01:00
|
|
|
#for package in \
|
|
|
|
# kas \
|
|
|
|
# pylint;
|
|
|
|
#do
|
|
|
|
# pipx install $package
|
|
|
|
#done
|
2019-02-07 11:32:04 +01:00
|
|
|
|
2018-11-23 09:57:23 +01:00
|
|
|
# vim related
|
2021-09-22 11:09:15 +02:00
|
|
|
nvim +PluginInstall +UpdateRemotePlugins +qall
|