Use bash arrays for multi-argument commands
This commit is contained in:
parent
6e75b5f3b6
commit
fcda41787a
1 changed files with 89 additions and 92 deletions
|
|
@ -1,96 +1,93 @@
|
||||||
#! /usr/bin/sh
|
#! /usr/bin/bash
|
||||||
|
|
||||||
DEB_PKGS="\
|
DEB_PKGS=(
|
||||||
age \
|
age
|
||||||
alsa-utils \
|
alsa-utils
|
||||||
audacity \
|
audacity
|
||||||
avahi-daemon \
|
avahi-daemon
|
||||||
black \
|
black
|
||||||
bluez \
|
bluez
|
||||||
borgbackup \
|
borgbackup
|
||||||
build-essential \
|
build-essential
|
||||||
cargo \
|
cargo
|
||||||
cargo-doc \
|
cargo-doc
|
||||||
curl \
|
curl
|
||||||
direnv \
|
direnv
|
||||||
docker.io \
|
docker.io
|
||||||
emacs-mozc \
|
emacs-mozc
|
||||||
exa \
|
exa
|
||||||
fcitx5-frontend-all \
|
fcitx5-frontend-all
|
||||||
fcitx5-mozc \
|
fcitx5-mozc
|
||||||
ffmpeg \
|
ffmpeg
|
||||||
firefox-esr \
|
firefox-esr
|
||||||
fuzzel \
|
fuzzel
|
||||||
gnumeric \
|
gnumeric
|
||||||
graphviz \
|
graphviz
|
||||||
grim \
|
grim
|
||||||
guile-3.0 \
|
guile-3.0
|
||||||
htop \
|
htop
|
||||||
imagemagick \
|
imagemagick
|
||||||
inkscape \
|
inkscape
|
||||||
jq \
|
jq
|
||||||
jupyter-notebook \
|
jupyter-notebook
|
||||||
keepassxc \
|
keepassxc
|
||||||
libnss-mdns \
|
libnss-mdns
|
||||||
libyajl-doc \
|
libyajl-doc
|
||||||
libyajl2 \
|
libyajl2
|
||||||
magic-wormhole \
|
magic-wormhole
|
||||||
make \
|
make
|
||||||
markdown \
|
markdown
|
||||||
mpv \
|
mpv
|
||||||
network-manager \
|
network-manager
|
||||||
nmap \
|
nmap
|
||||||
ntfs-3g \
|
ntfs-3g
|
||||||
pipewire-audio \
|
pipewire-audio
|
||||||
pipx \
|
pipx
|
||||||
postfix \
|
postfix
|
||||||
pre-commit \
|
pre-commit
|
||||||
pulseaudio-utils \
|
pulseaudio-utils
|
||||||
python3-poetry \
|
python3-poetry
|
||||||
python3-pylsp-black \
|
python3-pylsp-black
|
||||||
python3-pylsp-isort \
|
python3-pylsp-isort
|
||||||
python3-pylsp-mypy \
|
python3-pylsp-mypy
|
||||||
python3-pylsp-rope \
|
python3-pylsp-rope
|
||||||
python3.12-venv \
|
python3.12-venv
|
||||||
qtwayland5 \
|
qtwayland5
|
||||||
reuse \
|
reuse
|
||||||
ripgrep \
|
ripgrep
|
||||||
rust-doc \
|
rust-doc
|
||||||
rust-llvm \
|
rust-llvm
|
||||||
shellcheck \
|
shellcheck
|
||||||
slurp \
|
slurp
|
||||||
software-properties-common \
|
software-properties-common
|
||||||
speedtest-cli \
|
speedtest-cli
|
||||||
sway \
|
sway
|
||||||
sway-backgrounds \
|
sway-backgrounds
|
||||||
swayidle \
|
swayidle
|
||||||
swaylock \
|
swaylock
|
||||||
syncthing \
|
syncthing
|
||||||
transmission \
|
transmission
|
||||||
udisks2 \
|
udisks2
|
||||||
unar \
|
unar
|
||||||
unrar-free \
|
unrar-free
|
||||||
unzip \
|
unzip
|
||||||
wev \
|
wev
|
||||||
wf-recorder \
|
wf-recorder
|
||||||
wl-clipboard \
|
wl-clipboard
|
||||||
xdg-desktop-portal-wlr \
|
xdg-desktop-portal-wlr
|
||||||
xournalpp \
|
xournalpp
|
||||||
yt-dlp \
|
yt-dlp
|
||||||
zip \
|
zip
|
||||||
"
|
)
|
||||||
META_PKGS="\
|
META_PKGS=(
|
||||||
fonts-noto \
|
fonts-noto
|
||||||
"
|
)
|
||||||
|
|
||||||
PIPX_PKGS="\
|
PIPX_PKGS=(
|
||||||
ruff-lsp \
|
ruff-lsp
|
||||||
"
|
)
|
||||||
|
|
||||||
# shellcheck disable=SC2086
|
sudo DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --yes "${DEB_PKGS[@]}"
|
||||||
sudo DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --yes ${DEB_PKGS}
|
sudo DEBIAN_FRONTEND=noninteractive apt-get install --install-recommends --yes "${META_PKGS[@]}"
|
||||||
# shellcheck disable=SC2086
|
|
||||||
sudo DEBIAN_FRONTEND=noninteractive apt-get install --install-recommends --yes ${META_PKGS}
|
|
||||||
|
|
||||||
# shellcheck disable=SC2086
|
pipx install "${PIPX_PKGS[@]}"
|
||||||
pipx install ${PIPX_PKGS}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue