Skip to content

Commit

Permalink
Update setup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
will-gant authored Aug 8, 2022
1 parent fd04fa9 commit 1aca213
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,8 @@ set -eo pipefail

script_dir="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )";

# commandline developer tools
touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress;
xcode_version="$(softwareupdate --list | grep -E --only-matching "Command Line Tools for Xcode-[0-9]+\.[0-9]+" | tail -n 1)"
softwareupdate --install "$xcode_version" --verbose
rm /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress

# brew
mkdir "${script_dir}/homebrew" && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C "${script_dir}/homebrew"
eval "$(homebrew/bin/brew shellenv | tee "${HOME}/.zshrc")"
brew update --force --quiet
chmod -R go-w "$(brew --prefix)/share/zsh"

brew bundle --file="${script_dir}/Brewfile"
mkdir -p "${HOME}/Library/LaunchAgents"
brew autoupdate start 43200
brew bundle --file="${script_dir}/Brewfile"

# git
cp "${script_dir}/gitconfig" "${HOME}/.gitconfig"
Expand Down

0 comments on commit 1aca213

Please sign in to comment.