2018-11-23 10:10:17 +01:00
|
|
|
#! /bin/bash
|
2023-10-17 13:25:13 +02:00
|
|
|
|
|
|
|
# SPDX-FileCopyrightText: 2023 Tobias Schmidl
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
2019-01-22 14:23:16 +01:00
|
|
|
# fail immediately on error
|
2019-01-22 14:14:25 +01:00
|
|
|
set -e
|
2018-11-27 09:08:03 +01:00
|
|
|
CURLOPT=${CURLOPT:-"--location --remote-time --show-error --silent --fail --tlsv1.2"}
|
2018-11-23 10:10:17 +01:00
|
|
|
|
2019-01-22 14:06:22 +01:00
|
|
|
apt-get update \
|
2019-01-22 14:14:25 +01:00
|
|
|
&& apt-get dist-upgrade -y \
|
2019-01-22 14:06:22 +01:00
|
|
|
&& apt-get install -y \
|
2018-11-23 10:59:55 +01:00
|
|
|
apt-file \
|
|
|
|
bash-completion \
|
2022-07-13 10:30:09 +02:00
|
|
|
bat \
|
2018-11-23 10:59:55 +01:00
|
|
|
build-essential \
|
|
|
|
byobu \
|
|
|
|
ca-certificates \
|
2021-08-17 08:40:52 +02:00
|
|
|
cargo \
|
2018-11-23 10:59:55 +01:00
|
|
|
command-not-found \
|
|
|
|
curl \
|
|
|
|
elinks \
|
2023-11-13 14:30:19 +01:00
|
|
|
eza \
|
2022-07-13 10:30:09 +02:00
|
|
|
fd-find \
|
|
|
|
fzf \
|
2018-11-23 10:59:55 +01:00
|
|
|
git \
|
2023-11-13 14:30:19 +01:00
|
|
|
git-delta \
|
2022-11-22 20:53:23 +01:00
|
|
|
glances \
|
2019-06-05 03:42:10 +02:00
|
|
|
highlight \
|
2018-11-23 10:59:55 +01:00
|
|
|
htop \
|
|
|
|
locales \
|
|
|
|
man \
|
|
|
|
mc \
|
|
|
|
neovim \
|
|
|
|
python3 \
|
2022-11-22 21:08:20 +01:00
|
|
|
python3-jedi \
|
|
|
|
python3-neovim \
|
2022-11-22 20:53:23 +01:00
|
|
|
python3-pygments \
|
2018-11-23 10:59:55 +01:00
|
|
|
python3-venv \
|
2022-11-22 20:53:23 +01:00
|
|
|
ranger \
|
2022-07-13 10:30:09 +02:00
|
|
|
ripgrep \
|
2018-11-23 11:03:29 +01:00
|
|
|
tig \
|
2018-11-23 10:59:55 +01:00
|
|
|
zsh \
|
2019-03-18 06:51:32 +01:00
|
|
|
&& apt-get install --no-install-recommends -y \
|
|
|
|
firejail \
|
2019-07-12 06:50:46 +02:00
|
|
|
firejail-profiles \
|
2023-10-17 13:29:42 +02:00
|
|
|
pipx \
|
2018-11-23 10:59:55 +01:00
|
|
|
&& apt-file update
|
2018-11-23 10:10:17 +01:00
|
|
|
|
2023-10-17 13:30:11 +02:00
|
|
|
cargo install --root /usr/local diffr
|
2020-01-31 11:07:03 +01:00
|
|
|
|
2021-02-12 07:40:57 +01:00
|
|
|
# shellcheck disable=SC2086
|
2024-12-18 08:28:01 +01:00
|
|
|
curl $CURLOPT -o /usr/local/sbin/cleanup.sh https://git.schmidl.dev/schtobia/bootstrap/raw/branch/master/cleanup.sh \
|
2021-02-12 07:40:57 +01:00
|
|
|
&& chmod u+x /usr/local/sbin/cleanup.sh
|
2021-09-08 09:44:11 +02:00
|
|
|
|
|
|
|
# diff-highlight from git is necessary for tig
|
|
|
|
if [ ! -x /usr/local/bin/diff-highlight ];
|
|
|
|
then
|
|
|
|
echo "#!/usr/bin/perl" > /usr/local/bin/diff-highlight \
|
|
|
|
&& cat /usr/share/doc/git/contrib/diff-highlight/DiffHighlight.pm /usr/share/doc/git/contrib/diff-highlight/diff-highlight.perl >> /usr/local/bin/diff-highlight \
|
|
|
|
&& chmod +x /usr/local/bin/diff-highlight
|
|
|
|
fi
|