2017-10-12 14:02:17 +02:00
|
|
|
#! /bin/sh
|
2018-07-13 12:57:15 +02:00
|
|
|
sudo -S bash -c "apt update && apt dist-upgrade && \
|
|
|
|
apt install bash-completion elinks git zsh curl neovim byobu command-not-found apt-file htop \
|
|
|
|
python3-venv python3 locales man mc cmake clang build-essential libpython-dev libpython3-dev && \
|
2017-10-17 13:52:19 +02:00
|
|
|
apt-file update && \
|
|
|
|
update-command-not-found"
|
2017-10-12 14:02:17 +02:00
|
|
|
|
2018-07-13 09:37:27 +02:00
|
|
|
# clone the entire environment from github
|
|
|
|
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"
|
|
|
|
git --git-dir="$HOME/.cfg/" --work-tree="$HOME" config status.showUntrackedFiles no
|
2018-07-20 11:06:00 +02:00
|
|
|
(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)
|
2018-07-13 09:37:27 +02:00
|
|
|
rm -r $TMPDIR
|
|
|
|
|
2018-03-07 16:27:52 +01:00
|
|
|
# node related
|
|
|
|
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
|
|
|
|
sudo apt-get install -y nodejs
|
|
|
|
|
2018-03-07 16:28:41 +01:00
|
|
|
# python3 related
|
2018-07-13 09:37:27 +02:00
|
|
|
sudo -S bash -c "curl -RLfs https://bootstrap.pypa.io/get-pip.py | python2 &&\
|
|
|
|
curl -RLfs https://bootstrap.pypa.io/get-pip.py | python3"
|
2018-03-07 16:28:41 +01:00
|
|
|
|
2018-01-19 08:55:12 +01:00
|
|
|
# vim related
|
2018-07-13 09:37:27 +02:00
|
|
|
pip install --user neovim &&
|
2018-03-07 16:52:24 +01:00
|
|
|
nvim +PluginInstall +qall && \
|
|
|
|
(cd $HOME/.vim/bundle/YouCompleteMe && ./install.py --clang-completer --js-completer --system-libclang)
|