This commit is contained in:
parent
a6cc5ae3d1
commit
b21a2f8468
1 changed files with 12 additions and 15 deletions
27
bootstrap.sh
27
bootstrap.sh
|
@ -1,28 +1,25 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
sudo -S bash -c "apt install bash-completion elinks git zsh curl neovim fortunes fortunes-de fortunes-debian-hints fortunes-off cowsay byobu command-not-found apt-file htop python3-venv python3 locales man mc cmake clang build-essential libpython-dev libpython3-dev && \
|
sudo -S bash -c "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 && \
|
||||||
apt-file update && \
|
apt-file update && \
|
||||||
update-command-not-found"
|
update-command-not-found"
|
||||||
|
|
||||||
|
# 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
|
||||||
|
(cd $HOME && git --git-dir="$HOME/.cfg/" --work-tree="$HOME" checkout -- .)
|
||||||
|
rm -r $TMPDIR
|
||||||
|
|
||||||
# node related
|
# node related
|
||||||
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
|
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
|
||||||
sudo apt-get install -y nodejs
|
sudo apt-get install -y nodejs
|
||||||
|
|
||||||
# python3 related
|
# python3 related
|
||||||
sudo -S bash -c "curl --tlsv1.2 -RLfs https://bootstrap.pypa.io/get-pip.py | python2 &&\
|
sudo -S bash -c "curl -RLfs https://bootstrap.pypa.io/get-pip.py | python2 &&\
|
||||||
curl --tlsv1.2 -RLfs https://bootstrap.pypa.io/get-pip.py | python3"
|
curl -RLfs https://bootstrap.pypa.io/get-pip.py | python3"
|
||||||
|
|
||||||
# vim related
|
# vim related
|
||||||
mkdir -p $HOME/.vim/autoload $HOME/.vim/bundle $HOME/.config/nvim && \
|
pip install --user neovim &&
|
||||||
git clone https://github.com/VundleVim/Vundle.vim.git $HOME/.vim/bundle/Vundle.vim && \
|
|
||||||
curl -RLSso $HOME/.vimrc https://github.com/schtobia/systemsettings/raw/master/vimrc && \
|
|
||||||
curl -RLSso $HOME/.config/nvim/init.vim https://github.com/schtobia/systemsettings/raw/master/init.vim && \
|
|
||||||
nvim +PluginInstall +qall && \
|
nvim +PluginInstall +qall && \
|
||||||
(cd $HOME/.vim/bundle/YouCompleteMe && ./install.py --clang-completer --js-completer --system-libclang)
|
(cd $HOME/.vim/bundle/YouCompleteMe && ./install.py --clang-completer --js-completer --system-libclang)
|
||||||
|
|
||||||
# zsh related
|
|
||||||
mkdir -p $HOME/.local/lib/zsh/custom-zsh &&
|
|
||||||
git clone https://github.com/zsh-users/antigen.git $HOME/.local/lib/zsh/antigen &&
|
|
||||||
curl -RLSso $HOME/.zshrc https://github.com/schtobia/systemsettings/raw/master/zshrc
|
|
||||||
|
|
||||||
#git related
|
|
||||||
curl -RLSso $HOME/.gitconfig https://github.com/schtobia/systemsettings/raw/master/gitconfig
|
|
||||||
|
|
Loading…
Reference in a new issue