45 lines
692 B
Bash
Executable File
45 lines
692 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
echo "==> Installing base apt packages..."
|
|
|
|
sudo apt update
|
|
|
|
PACKAGES=(
|
|
# essentials
|
|
build-essential
|
|
curl
|
|
wget
|
|
git
|
|
unzip
|
|
zip
|
|
stow
|
|
|
|
# terminal
|
|
tmux
|
|
|
|
# search / file tools
|
|
ripgrep
|
|
fd-find
|
|
tree
|
|
|
|
# network
|
|
openssh-client
|
|
rsync
|
|
|
|
# libs often needed for compiling things
|
|
pkg-config
|
|
libssl-dev
|
|
libfontconfig1-dev
|
|
)
|
|
|
|
sudo apt install -y "${PACKAGES[@]}"
|
|
|
|
if ! command -v fd &>/dev/null && command -v fdfind &>/dev/null; then
|
|
mkdir -p "$HOME/.local/bin"
|
|
ln -sf "$(which fdfind)" "$HOME/.local/bin/fd"
|
|
echo " linked fdfind -> fd"
|
|
fi
|
|
|
|
echo "==> apt packages done."
|