Last active
January 6, 2022 07:22
-
-
Save autodidacticon/b2c02521cdd8a70a8479b2a33c78c92b to your computer and use it in GitHub Desktop.
mac.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# macos provisioning script | |
# prerequisites: hostname folder must exist as host-$HOSTNAME | |
# usage: mac.sh hostname | |
HOSTNAME=$1 | |
sudo hostname $HOSTNAME | |
scutil --set HostName $HOSTNAME | |
cd ~ | |
mkdir git | |
cd git | |
#install Xcode CLT | |
xcode-select --install | |
# install Homebrew | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
# clone dotfiles | |
git clone https://github.com/autodidacticon/dotfiles.git | |
# install 'brew bundle' | |
brew update | |
brew tap homebrew/bundle | |
# install stuff | |
cd ~/git/dotfiles/host-`hostname` | |
brew bundle -v | |
# install oh-my-zsh | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
# install dotfiles | |
rcup -d $HOME/git/dotfiles -B `hostname -s` -x Brewfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment