bootstrap/bootstrap-user.sh
2022-05-16 12:30:14 +00:00

28 lines
862 B
Bash
Executable file

#! /bin/bash
# fail immediately on error
set -e
TMPDIR=$(mktemp -u -p "$HOME" -d dotfiles.XXXXX) && \
git clone --separate-git-dir="$HOME/.cfg" https://gitlab.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"
pip install --user -r https://gitlab.com/schtobia/bootstrap/raw/master/requirements.txt &&
for package in \
glances \
kas \
pygments \
pylint \
ranger_fm \
watchdog;
do
pipx install $package
done
# vim related
nvim +PluginInstall +UpdateRemotePlugins +qall