26 lines
997 B
Bash
Executable file
26 lines
997 B
Bash
Executable file
#!/usr/bin/bash
|
|
|
|
set -ouex pipefail
|
|
|
|
# Starship Shell Prompt
|
|
curl -Lo /tmp/starship.tar.gz "https://github.com/starship/starship/releases/latest/download/starship-x86_64-unknown-linux-gnu.tar.gz"
|
|
tar -xzf /tmp/starship.tar.gz -C /tmp
|
|
install -c -m 0755 /tmp/starship /usr/bin
|
|
# shellcheck disable=SC2016
|
|
echo 'eval "$(starship init bash)"' >> /etc/bashrc
|
|
|
|
# Bash Prexec
|
|
curl -Lo /usr/share/bash-prexec https://raw.githubusercontent.com/rcaloras/bash-preexec/master/bash-preexec.sh
|
|
|
|
# Topgrade Install
|
|
pip install --prefix=/usr topgrade
|
|
|
|
# Install ublue-update -- breaks with packages.json disable staging to use bling.
|
|
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/ublue-os-staging-fedora-"${FEDORA_MAJOR_VERSION}".repo
|
|
rpm-ostree install ublue-update
|
|
|
|
# Consolidate Just Files
|
|
find /tmp/just -iname '*.just' -exec printf "\n\n" \; -exec cat {} \; >> /usr/share/ublue-os/just/60-custom.just
|
|
|
|
# Move over ublue-update config
|
|
mv -f /tmp/ublue-update.toml /usr/etc/ublue-update/ublue-update.toml
|