This commit is contained in:
deathbybandaid 2024-05-01 20:14:19 -04:00
parent 5c85f3d57b
commit f103636071
6 changed files with 38 additions and 2 deletions

19
020-Fancy_Apt.sh Normal file
View File

@ -0,0 +1,19 @@
#!/bin/bash
## Script Location
SCRIPTDIR=$(dirname $0)
source "$SCRIPTDIR/common/colors.sh"
source "$SCRIPTDIR/common/functions.sh"
source "$SCRIPTDIR/common/load-defaults.sh"
# Fix fancy progress bar for apt-get
# https://askubuntu.com/a/754653
if [ -d /etc/apt/apt.conf.d ]
then
if ! [ -f /etc/apt/apt.conf.d/99progressbar ]
then
echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar
echo 'APT::Color "1";' >> /etc/apt/apt.conf.d/99progressbar
chmod 644 /etc/apt/apt.conf.d/99progressbar
fi
fi

17
021-IPv4_Apt.sh Normal file
View File

@ -0,0 +1,17 @@
#!/bin/bash
## Script Location
SCRIPTDIR=$(dirname $0)
source "$SCRIPTDIR/common/colors.sh"
source "$SCRIPTDIR/common/functions.sh"
source "$SCRIPTDIR/common/load-defaults.sh"
# Prefer IPv4 for apt
if [ -d /etc/apt/apt.conf.d ]
then
if ! [ -f /etc/apt/apt.conf.d/99force-ipv4 ]
then
echo 'Acquire::ForceIPv4 "true";' >> /etc/apt/apt.conf.d/99force-ipv4
chmod 644 /etc/apt/apt.conf.d/99force-ipv4
fi
fi

1
dependencies/fastfetch.dep vendored Normal file
View File

@ -0,0 +1 @@
fastfetch

View File

@ -1 +0,0 @@
neofetch

View File

@ -1,2 +1,2 @@
#!/bin/bash
/usr/bin/neofetch
$(which fastfetch)