Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions os-init/fedora-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,24 @@ sudo -v

#shellcheck disable=SC2004
prompt() {
local available=$(($(tput cols) - ${#1} - 2))
local left=$((available / 2))
local right=$((available - left))
local available=$(($(tput cols) - ${#1} - 2))
local left=$((available / 2))
local right=$((available - left))

test $left -gt 0 && printf -- "=%.0s" $(seq 1 $left)
printf " %s " "$1"
test $right -gt 0 && printf -- "=%.0s" $(seq 1 $right)
echo ""
test $left -gt 0 && printf -- "=%.0s" $(seq 1 $left)
printf " %s " "$1"
test $right -gt 0 && printf -- "=%.0s" $(seq 1 $right)
echo ""
}

prompt "system package installations"
PACKAGES=(fd-find ripgrep clang editorconfig ShellCheck openssh-clients openssl-devel pkg-config gcc cmake curl fontconfig p7zip)
PACKAGES=(fd-find ripgrep clang editorconfig ShellCheck openssh-clients openssl-devel pkg-config gcc cmake curl fontconfig p7zip unzip)
# eza packaging on Fedora is inconsistent across releases; only add it if
# the active repos actually expose it, otherwise leave it for cargo-binstall.
if dnf info eza &>/dev/null; then
PACKAGES+=(eza)
PACKAGES+=(eza)
fi
if [[ -z "${DOTFILES_SKIP_UPDATE:-}" ]]; then
sudo dnf makecache
sudo dnf makecache
fi
sudo dnf install -y "${PACKAGES[@]}"