Compare commits

..

2 Commits

Author SHA1 Message Date
d14ab2d7ff brew_programs_disable: init 2025-07-14 12:12:49 +02:00
5df3b86fc9 update-pkg: added disabled items 2025-07-14 12:12:05 +02:00
2 changed files with 8 additions and 2 deletions

1
.brew_programs_disable Normal file
View File

@@ -0,0 +1 @@
example

View File

@@ -446,15 +446,20 @@ function install_brew_programs() {
INSTALLED_PROGRAMS=$(brew list)
while IFS='' read -r line; do LIST_OF_PROGRAMS+=("$line"); done < <(cat "$HOME"/.brew_programs)
while IFS='' read -r line; do LIST_OF_PROGRAMS_CASK+=("$line"); done < <(cat "$HOME"/.brew_programs_cask)
while IFS='' read -r line; do LIST_OF_PROGRAMS_DISABLE+=("$line"); done < <(cat "$HOME"/.brew_programs_disable)
for i in "${LIST_OF_PROGRAMS[@]}"; do
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]]; then
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]] \
&& \
[[ ! " ${LIST_OF_PROGRAMS_DISABLE[*]} " =~ ${i} ]]; then
brew install $i --force
fi
done
for i in "${LIST_OF_PROGRAMS_CASK[@]}"; do
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]]; then
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]] \
&& \
[[ ! " ${LIST_OF_PROGRAMS_DISABLE[*]} " =~ ${i} ]]; then
brew install $i --cask --force
fi
done