mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 08:00:14 +00:00
split homebrew bundle files
This commit is contained in:
17
scripts/all_brews
Executable file
17
scripts/all_brews
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
DOTS=$(dirname "$0")/..
|
||||
cd "$DOTS" || (echo "Directory not found: $DOTS"; exit 1)
|
||||
DOTS="$PWD"
|
||||
|
||||
all_brews() {
|
||||
brewfile=$DOTS/homebrew/Caskfile
|
||||
for brewfile in $(find "$DOTS/homebrew" -iname "*.Brewfile")
|
||||
do
|
||||
/usr/local/bin/brew bundle check --file "$brewfile" \
|
||||
&& /usr/local/bin/brew bundle --file "$brewfile"
|
||||
done \
|
||||
&& echo "all brews installed ✓"
|
||||
}
|
||||
|
||||
all_brews
|
@ -28,7 +28,7 @@ install_homebrew() {
|
||||
}
|
||||
|
||||
install_brews() {
|
||||
brewfile=$DOTS/homebrew/Brewfile
|
||||
brewfile=$DOTS/homebrew/core.Brewfile
|
||||
if ! (/usr/local/bin/brew bundle check --file "$brewfile" > /dev/null)
|
||||
then
|
||||
/usr/local/bin/brew bundle --file "$brewfile"
|
||||
@ -102,6 +102,7 @@ use_fish_shell
|
||||
|
||||
echo ""
|
||||
echo "consider running other scripts:"
|
||||
echo " - all_brews"
|
||||
echo " - install_casks"
|
||||
echo " - configure_macos"
|
||||
echo " - install_rust"
|
||||
|
Reference in New Issue
Block a user