bootstrap/bootstrap.sh

39 lines
1.6 KiB
Bash
Raw Normal View History

2017-10-12 14:02:17 +02:00
#! /bin/sh
2018-11-02 11:35:18 +01:00
DISTRO=$(lsb_release -is | tr '[A-Z]' '[a-z]')
SUITE=$(lsb_release -cs)
2018-07-13 12:57:15 +02:00
sudo -S bash -c "apt update && apt dist-upgrade && \
2018-11-02 11:35:18 +01:00
apt install bash-completion locales man mc elinks git zsh curl neovim byobu htop \
command-not-found apt-file apt-transport-https ca-certificates software-properties-common \
2018-11-10 20:44:43 +01:00
python3-venv python3 libpython-dev libpython3-dev cmake clang build-essential && \
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
2018-11-02 11:39:41 +01:00
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"
[ -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
2018-07-13 09:37:27 +02:00
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-11-02 11:35:18 +01: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"
2018-11-02 11:35:18 +01:00
# Docker related
2018-11-23 09:50:18 +01:00
curl -RLSsf1 https://github.com/schtobia/bootstrap/raw/master/docker-install.sh | sudo -SH bash -
2018-11-02 11:35:18 +01:00
# 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)