Skip to content

Instantly share code, notes, and snippets.

@jesse-gallagher
Created November 24, 2018 21:14
Show Gist options
  • Save jesse-gallagher/7bbe175dd20d808286a3639dea27e30a to your computer and use it in GitHub Desktop.
Save jesse-gallagher/7bbe175dd20d808286a3639dea27e30a to your computer and use it in GitHub Desktop.
My initial Mac setup script
#!/bin/sh
set -e
# SSH
ssh-keygen
# Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew doctor
brew tap homebrew/cask-versions
# Homebrew apps
brew install cmake
brew install ffmpeg
brew install gradle
brew install maven
brew install youtube-dl
# Web Browsers
brew cask install firefox-developer-edition
brew cask install chromium
# Development
brew cask install intellij-idea
brew cask install java
brew cask install java8
brew cask install eclipse-jee
brew cask install tower
brew cask install jd-gui
brew cask install sqlpro-studio
brew cask install dash
brew cask install typora
brew cask install textmate
# Games and Media
brew cask install plex-media-player
brew cask install steam
# General Utilities
brew cask install betterzip
brew cask install 1password
brew cask install transmit
brew cask install code42-crashplan
brew cask install transmission
brew cask install alfred
# Meetings and Chat
brew cask install franz
brew cask install zoomus
brew cask install skype
# App Store apps
brew install mas
mas install 497799835 # Xcode
mas install 414554506 # Clocks
mas install 975937182 # Fantastical 2
mas install 410628904 # Wunderlist
mas install 1107421413 # 1Blocker
mas install 1384080005 # Tweetbot 3
mas install 880001334 # Reeder 3
mas install 584653203 # Paw
mas install 1176895641 # Spark
mas install 498370702 # RegExRx
mas install 524141863 # Jump Desktop
mas install 877848776 # Pathology
# Configuration
## Dock
defaults write com.apple.dock showhidden -bool TRUE
killall Dock
## Finder
defaults write com.apple.finder ShowStatusBar -bool TRUE
defaults write com.apple.finder ShowPathbar -bool TRUE
defaults write com.apple.finder ShowSidebar -bool TRUE
defaults write com.apple.finder ShowHardDrivesOnDesktop -bool TRUE
defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool TRUE
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool TRUE
defaults write com.apple.finder NewWindowTarget PfHm
defaults write com.apple.finder NewWindowTargetPath file://$HOME
defaults write com.apple.finder DesktopViewSettings "{
IconViewSettings = {
arrangeBy = name;
backgroundColorBlue = 1;
backgroundColorGreen = 1;
backgroundColorRed = 1;
backgroundType = 0;
gridOffsetX = 0;
gridOffsetY = 0;
gridSpacing = 85;
iconSize = 64;
labelOnBottom = 0;
showIconPreview = 1;
showItemInfo = 1;
textSize = 12;
viewOptionsVersion = 1;
};
}"
defaults write com.apple.finder StandardViewSettings "{
ExtendedListViewSettingsV2 = {
calculateAllSizes = 0;
columns = (
{
ascending = 1;
identifier = name;
visible = 1;
width = 300;
},
{
ascending = 0;
identifier = ubiquity;
visible = 0;
width = 35;
},
{
ascending = 0;
identifier = dateModified;
visible = 1;
width = 181;
},
{
ascending = 0;
identifier = dateCreated;
visible = 0;
width = 181;
},
{
ascending = 0;
identifier = size;
visible = 1;
width = 97;
},
{
ascending = 1;
identifier = kind;
visible = 1;
width = 115;
},
{
ascending = 1;
identifier = label;
visible = 0;
width = 100;
},
{
ascending = 1;
identifier = version;
visible = 0;
width = 75;
},
{
ascending = 1;
identifier = comments;
visible = 0;
width = 300;
},
{
ascending = 0;
identifier = dateLastOpened;
visible = 0;
width = 200;
},
{
ascending = 0;
identifier = dateAdded;
visible = 0;
width = 181;
}
);
iconSize = 16;
showIconPreview = 1;
sortColumn = name;
textSize = 12;
useRelativeDates = 1;
viewOptionsVersion = 1;
};
GalleryViewSettings = {
arrangeBy = name;
iconSize = 48;
showIconPreview = 1;
viewOptionsVersion = 1;
};
IconViewSettings = {
arrangeBy = none;
backgroundColorBlue = 1;
backgroundColorGreen = 1;
backgroundColorRed = 1;
backgroundType = 0;
gridOffsetX = 0;
gridOffsetY = 0;
gridSpacing = 54;
iconSize = 64;
labelOnBottom = 1;
showIconPreview = 1;
showItemInfo = 0;
textSize = 12;
viewOptionsVersion = 1;
};
ListViewSettings = {
calculateAllSizes = 0;
columns = {
comments = {
ascending = 1;
index = 7;
visible = 0;
width = 300;
};
dateCreated = {
ascending = 0;
index = 2;
visible = 0;
width = 181;
};
dateLastOpened = {
ascending = 0;
index = 8;
visible = 0;
width = 200;
};
dateModified = {
ascending = 0;
index = 1;
visible = 1;
width = 181;
};
kind = {
ascending = 1;
index = 4;
visible = 1;
width = 115;
};
label = {
ascending = 1;
index = 5;
visible = 0;
width = 100;
};
name = {
ascending = 1;
index = 0;
visible = 1;
width = 300;
};
size = {
ascending = 0;
index = 3;
visible = 1;
width = 97;
};
version = {
ascending = 1;
index = 6;
visible = 0;
width = 75;
};
};
iconSize = 16;
showIconPreview = 1;
sortColumn = name;
textSize = 12;
useRelativeDates = 1;
viewOptionsVersion = 1;
};
SettingsType = StandardViewSettings;
}"
killall Finder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment