Skip to content

Instantly share code, notes, and snippets.

@joshbuchea
Forked from matteocrippa/mac-setup.sh
Created August 8, 2019 23:53
Show Gist options
  • Select an option

  • Save joshbuchea/8eb48c7e98d44ff95a9bda171c42c302 to your computer and use it in GitHub Desktop.

Select an option

Save joshbuchea/8eb48c7e98d44ff95a9bda171c42c302 to your computer and use it in GitHub Desktop.
a script to quick setup my dev Mac
#!/usr/bin/env bash
echo "Install XCode first and XCode Beta"
# Setup directories
mkdir ~/Projects
mkdir ~/Projects/Repositories
# Install brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Tap
brew tap homebrew/versions
brew tap homebrew/bundle
brew tap homebrew/core
brew tap caskroom/cask
brew tap caskroom/fonts
# Update
brew update
brew upgrade
# Install brews
brew install coreutils
brew install git
brew install node yarn
brew install wget --with-iri
brew install curl --with-openssl
brew link --force curl
brew install cocoapods
brew install swiftlint
brew install gpg2
brew install mackup
# Vim
brew install vim --with-override-system-vi
git clone https://github.com/amix/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_awesome_vimrc.sh
# Zsh
brew install zsh zsh-completions
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
brew install zsh-autosuggestions
# install zsh spaceship
npm install -g spaceship-prompt
# Setup ZSHRC
echo "export PATH=$HOME/bin:/usr/local/bin:$PATH" > ~/.zshrc
echo "export PATH=$HOME/.fastlane/bin:$PATH" >> ~/.zshrc
echo "export PATH=/Users/matteocrippa/Library/Android/sdk/platform-tools:$PATH" >> ~/.zshrc
echo "export PATH=/Users/matteocrippa/Library/Android/sdk:$PATH" >> ~/.zshrc
echo "export ZSH=/Users/matteocrippa/.oh-my-zsh" >> ~/.zshrc
echo "ZSH_THEME=\"\"" >> ~/.zshrc
echo "plugins=(git colored-man colorize github virtualenv brew osx zsh-syntax-highlighting)" >> ~/.zshrc
echo "fpath=(/usr/local/share/zsh-completions $fpath)" >> ~/.zshrc
echo "source $ZSH/oh-my-zsh.sh" >> ~/.zshrc
echo "export SSH_KEY_PATH=\"~/.ssh/rsa_id\"" >> ~/.zshrc
echo "source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh" >> ~/.zshrc
# List of apps
brew install 1password
brew install android-file-transfer
brew install android-studio
brew install visual-studio-code
brew install caffeine
brew install charles
brew install cleanmymac
brew install clipy
brew install fastlane
brew install firefox
brew install docker
brew install docker-toolbox
brew install gpg-suite
brew install grammarly
brew install imageoptim
brew install istat-menus
brew install iterm2
brew install java
brew install knuff
brew install little-snitch
brew install paw
brew install sketch
brew install sourcetree
brew install tunnelblick
brew install the-unarchiver
brew install colorpicker-developer
# Install mas
brew install mas
# Cleanup
brew cleanup
brew cask cleanup
# Download AppStore apps
mas install 497799835
mas install 409183694
mas install 409201541
mas install 409203825
mas install 407963104
mas install 1063996724
mas install 1007457278
mas install 476533227
mas install 824171161
mas install 1178548760
mas install 1063996724
mas install 918858936
# Setup XCode theme
mkdir -p ~/Library/Developer/Xcode/UserData/FontAndColorThemes/
cd ~/Library/Developer/Xcode/UserData/FontAndColorThemes/
git clone https://github.com/dracula/xcode.git Dracula
cp Dracula/Dracula.dvtcolortheme .
chmod +x Dracula.dvtcolortheme
echo "πŸ‘‰ Select Dracula theme in XCode"
# Setup iTerm theme
echo "πŸ‘‰ Select import in iTerm and install it"
cd ~/Downloads
git clone https://github.com/dracula/iterm.git
# Install font
brew cask install font-meslo-for-powerline
echo "πŸ‘‰ Set Meslo powerline as iTerm2 font"
# Force disable .DS_Store
git config --global core.excludesfile ~/.gitignore
echo .DS_Store >> ~/.gitignore
# Force GPG2 as Github
git config --global gpg.program gpg2
# Improve security
curl -O https://fix-macosx.com/fix-macosx.py
/usr/bin/python fix-macosx.py
# Disable brew analytics
brew analytics off
# VueJS
npm install -g vue-cli
# Transmit
wget https://download.panic.com/transmit/Transmit%204.4.13.zip
# Restore mackup
echo "[storage]" >> ~/.mackup.cfg
echo "engine = icloud" >> ~/.mackup.cfg
echo "directory = Mackup" >> ~/.mackup.cfg
echo "[applications_to_ignore]" >> ~/.mackup.cfg
echo "vscode" >> ~/.mackup.cfg
echo "atom" >> ~/.mackup.cfg
echo "docker" >> ~/.mackup.cfg
mackup restore
# Restore Visual Studio Code
echo ">> Install https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync "
# Install extras
echo ">> Install Airparrot2, Audiobridge"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment