mirror of
https://github.com/Lissy93/dotfiles.git
synced 2025-06-29 05:11:20 +02:00
Add repos
This commit is contained in:
parent
e171fdcda9
commit
afdb6b9201
@ -73,6 +73,19 @@ debian_apps=(
|
||||
'neofetch' # Show off distro and system info
|
||||
)
|
||||
|
||||
debian_repos=(
|
||||
'main'
|
||||
'universe'
|
||||
'restricted'
|
||||
'multiverse'
|
||||
)
|
||||
|
||||
# Following packages not found by apt, need to fix:
|
||||
# aria2, bat, broot, diff-so-fancy, duf, hyperfine,
|
||||
# just, procs, ripgrep, sd, tealdeer, tokei, trash-cli,
|
||||
# zoxide, clamav, cryptsetup, gnupg, lynis, btop, gping.
|
||||
|
||||
|
||||
# Colors
|
||||
PURPLE='\033[0;35m'
|
||||
YELLOW='\033[0;93m'
|
||||
@ -110,6 +123,17 @@ if ! hash apt 2> /dev/null; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Enable upstream package repositories
|
||||
echo -e "${CYAN_B}Would you like to enable listed repos? (y/N)${RESET}\n"
|
||||
read -t $PROMPT_TIMEOUT -n 1 -r
|
||||
echo
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
||||
for repo in ${debian_repos[@]}; do
|
||||
echo -e "${PURPLE}Enabling ${repo} repo...${RESET}"
|
||||
sudo add-apt-repository $repo
|
||||
done
|
||||
fi
|
||||
|
||||
# Prompt user to update package database
|
||||
echo -e "${CYAN_B}Would you like to update package database? (y/N)${RESET}\n"
|
||||
read -t $PROMPT_TIMEOUT -n 1 -r
|
||||
|
Loading…
x
Reference in New Issue
Block a user