mirror of
https://github.com/danbee/mac-setup
synced 2025-03-04 08:39:10 +00:00
We need Homebrew before we get git
Because installing Homebrew installs the Xcode command line tools.
This commit is contained in:
parent
25447c2c60
commit
abad92f2d9
7
lib/homebrew.sh
Executable file → Normal file
7
lib/homebrew.sh
Executable file → Normal file
@ -1,8 +1 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if ! type brew > /dev/null; then
|
|
||||||
/usr/bin/ruby -e \
|
|
||||||
"$(curl \
|
|
||||||
-fsSL \
|
|
||||||
https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
|
||||||
fi
|
|
||||||
|
|||||||
13
setup.sh
13
setup.sh
@ -23,6 +23,15 @@ if [ ! -f "$HOME/.ssh/id_ed25519.pub" ]; then
|
|||||||
read -n 1 -s
|
read -n 1 -s
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Install Homebrew
|
||||||
|
step "Installing Homebrew"
|
||||||
|
if ! type brew > /dev/null; then
|
||||||
|
/usr/bin/ruby -e \
|
||||||
|
"$(curl \
|
||||||
|
-fsSL \
|
||||||
|
https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||||
|
fi
|
||||||
|
|
||||||
# Clone setup repo
|
# Clone setup repo
|
||||||
if [ ! -d "$MAC_SETUP_DIR" ]; then
|
if [ ! -d "$MAC_SETUP_DIR" ]; then
|
||||||
git clone git@github.com:danbee/mac-setup.git "$HOME/mac-setup"
|
git clone git@github.com:danbee/mac-setup.git "$HOME/mac-setup"
|
||||||
@ -32,10 +41,6 @@ else
|
|||||||
cd -
|
cd -
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install Homebrew
|
|
||||||
step "Installing Homebrew"
|
|
||||||
"$MAC_SETUP_DIR/lib/homebrew.sh"
|
|
||||||
|
|
||||||
# Install brew bundles
|
# Install brew bundles
|
||||||
step "Installing Homebrew bundle"
|
step "Installing Homebrew bundle"
|
||||||
brew bundle --file="$MAC_SETUP_DIR/Brewfile"
|
brew bundle --file="$MAC_SETUP_DIR/Brewfile"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user