File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,18 +85,23 @@ remove_links() {
8585
8686install_brew () {
8787 echo " Installing brew"
88- case $( uname -sm) in
89- " Darwin arm64" )
90- brew=/opt/homebrew/bin/brew
91- ;;
92- * )
93- brew=/usr/local/bin/brew
94- ;;
95- esac
88+ brew=/opt/homebrew/bin/brew
9689 test -x $brew && echo " Brew already installed: $brew " && return
9790 curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | bash
9891}
9992
93+ brew_bundle () {
94+ echo " Running brew bundle"
95+ brew update
96+ brew bundle --global --verbose --force
97+ }
98+
99+ bundle_cleanup () {
100+ echo " Running brew bundle cleanup"
101+ brew update
102+ brew bundle cleanup --global --verbose --force
103+ }
104+
100105clone_repo () {
101106 echo " Cloning dotfiles repo"
102107 test -d $DOTFILES_REPO_DIR /.git && echo " Repo already exists: $DOTFILES_REPO_DIR " && return
@@ -108,7 +113,6 @@ bootstrap() {
108113 install_brew
109114 clone_repo
110115 create_links
111- source $DOTFILES_REPO_DIR /scripts/brew.sh
112116 brew_bundle
113117}
114118
127131
128132case $1 in
129133--brew-bundle)
130- source $DOTFILES_REPO_DIR /scripts/brew.sh
131134 brew_bundle
132135 ;;
133136--bundle-cleanup)
134- source $DOTFILES_REPO_DIR /scripts/brew.sh
135137 bundle_cleanup
136138 ;;
137139--create-links)
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments