bootstrap/bootstrap.sh

29 lines
1.3 KiB
Bash
Raw Normal View History

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
2018-09-06 19:41:58 +02:00
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
2018-03-07 16:27:52 +01:00
sudo apt-get install -y nodejs
# python3 related
2018-09-06 19:42:45 +02:00
sudo -HS bash -c "curl -RLfs https://bootstrap.pypa.io/get-pip.py | python2 &&\
2018-07-13 09:37:27 +02:00
curl -RLfs https://bootstrap.pypa.io/get-pip.py | python3"
# vim related
2018-07-24 11:56:05 +02:00
pip install --user neovim && \
npm install -g instant-markdown-d && \
2018-03-07 16:52:24 +01:00
nvim +PluginInstall +qall && \
(cd $HOME/.vim/bundle/YouCompleteMe && ./install.py --clang-completer --js-completer --system-libclang)