This repo is designed to be run on a fresh macOS install, you can also run it on an existing install - everything should work the same.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install git
git clone https://github.com/dkeightley/macOS-setup.git
cd macOS-setup
Grab Java first as some packages depend on it
https://www.oracle.com/technetwork/java/javase/downloads/index.html
Let brew do all the work installing the packages
brew bundle install
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
git clone git://github.com/altercation/vim-colors-solarized.git ~/.vim/bundle/vim-colors-solarized
git clone https://github.com/pearofducks/ansible-vim ~/.vim/bundle/ansible-vim
cp .vimrc ~/
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
cp .zshrc ~/
- Lowerlevel9k (preferred)
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
sed -i '' 's/ZSH_THEME=.*/ZSH_THEME="powerlevel9k\/powerlevel9k"/' ~/.zshrc
- Agnoster
sed -i '' 's/ZSH_THEME=.*/ZSH_THEME="agnoster"/' ~/.zshrc
git clone git://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone git://github.com/zsh-users/zsh-syntax-highlighting ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
The above zsh themes won't look very nice until you get setup with the solarized theme and a custom font.
Meslo is nice, however feel free to choose your own.
Click the .ttf and install the font, and setup both Terminal and iTerm2 with the solarized patched theme by importing the included preferences in this repo (*iterm2.plist and *.terminal)
cp com.googlecode.iterm2.plist ~/Library/Preferences/
Run the setup-macos.sh script, this has a bunch of tweaks you won't find in System Preferences that I find useful
./setup-macos.sh
./set-hostname.sh
If you like having some common Docker container layers pre-seeded locally for testing etc here's a good set to have pulled down.
for i in nginx alpine centos ubuntu redis busybox
do
docker pull $i
done