Skip to content

Instantly share code, notes, and snippets.

@lfigueira
Last active October 22, 2015 18:30
Show Gist options
  • Save lfigueira/537645f73a8300c58b14 to your computer and use it in GitHub Desktop.
Save lfigueira/537645f73a8300c58b14 to your computer and use it in GitHub Desktop.
Mac OS X 10.11 El Capitan Setup
#!/bin/sh
brew cask install appcleaner
brew cask install cyberduck
brew cask install transmission
brew cask install flux
brew cask install iterm2
brew cask install java
brew cask install slack
brew cask install telegram
brew cask install the-unarchiver
brew cask install vagrant
brew cask install virtualbox
brew cask install google-chrome
# Optional installs
# brew cask install xquartz
# brew cask install daisydisk
# brew cask install pgadmin3
# brew cask install sequel-pro
#!/bin/sh
brew install ack
brew install ansible
brew install brew-cask
brew install curl
brew install git
brew install git-flow
brew install htop-osx
brew install imagemagick
brew install keychain
brew install libyaml
brew install macvim
brew install node
brew install python
brew install reattach-to-user-namespace --wrap-pbcopy-pbpaste && brew link reattach-to-user-namespace
brew install rename
brew install sqlite
brew install sshfs
brew install stow
brew install subversion
brew install tmux
brew install vim
brew install wget
brew install z
brew install zsh
#!/bin/sh
pip install --upgrade pip
pip install autopep8
pip install flake8
pip install hg-git
pip install keyring
pip install mercurial
pip install mercurial-keyring
pip install pep8
pip install pyaml
pip install pyflakes
pip install pyyaml
pip install virtualenv
pip install virtualenvwrapper

Mac OS X 10.11 El Capitan

Custom recipe to get OS X 10.11 El Capitan running from scratch, setup applications and developer environment.

I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software

Install from App Store

Install from Third-Party Websites

Fonts

Homebrew

Install Xcode Command Line Tools

  • xcode-select --install or
  • Xcode > Preferences > Downloads > Command Line Tools

Run Xcode and accept the license

Homebrew can not install properly until this occurs.

Install Homebrew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor

At the time of this writing, brew doctor says that Xcode 6.1 is required, which means downloading it from the Apple Developer Center until it is released in the Mac App Store.

Install Homebrew extension Cask

brew install caskroom/cask/brew-cask

Install applications via Homebrew

./install-via-brew.sh

Install applications via Homebrew Cask

./install-via-brew-cask.sh

Vagrant

Install plugins

vagrant plugin install vagrant-vmware-fusion
vagrant plugin install vagrant-hostsupdater

Shell

Make zsh the default shell

chsh -s $(which zsh)

Install oh-my-zsh

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Set up dotfiles

cd ~/SpiderOak\ Hive/dotfiles/
stow -t ~ PACKAGE_NAME

Version control

Git and Mercurial

cd ~/SpiderOak\ Hive/dotfiles/
stow -t ~ git
stow -t ~ hg

Subversion

ln -s ~/SpiderOak\ Hive/dotfiles/.subversion

Sublime Text

Add Sublime Text CLI

mkdir -p ~/bin && ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/bin/subl

Install Package Control

Run Sublime Text 3 and access the console via the CTRL + ``` shortcut or the View > Show Console` menu.

import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

See https://sublime.wbond.net/installation for more information. Their site has a note that this install code will change for each new release, so it would be good to check once in a while.

Packages

  • AdvancedNewFile
  • Alignment
  • Bracket Highlighter
  • Color Highlighter
  • Djaneiro
  • DocBlockr
  • Emmet
  • FileDiffs
  • FileSystem Autocompletion
  • Git
  • Local History
  • Markdown Preview
  • Markdown Editing
  • Origami
  • Side Bar
  • Trimmer
  • VCS Gutter
  • HTML/CSS/JS Prettify
  • Pretty YAML
  • Python PEP8 Autoformat
  • SublimeCodeIntel
  • SublimeLinter

Themes

  • Spacegray

Settings

Sublime Text > Preferences > Settings - User

{
  "auto_complete_commit_on_tab": true,
  "auto_complete_with_fields": true,
  "bold_folder_labels": true,
  "caret_style": "smooth",
  "color_scheme": "Packages/User/SublimeLinter/base16-ocean.dark (SL).tmTheme",
  "default_line_endinGg": "unix",
  "dictionary": "Packages/Language - English/en_GB.dic",
  "draw_white_space": "all",
  "fade_fold_buttons": "false",
  "font_face": "Sauce Code Powerline",
  "font_size": 12,
  "highlight_line": true,
  "highlight_modified_tabs": true,
  "ignored_packages":
  [
    "Markdown"
  ],
  "indent_guide_options":
  [
    "draw_active"
  ],
  "match_brackets_angle": true,
  "original_color_scheme": "Packages/User/Color Highlighter/themes/Monokai (Colorcoded).tmTheme",
  "rulers":
  [
    80
  ],
  "save_on_focus_lost": true,
  "scroll_past_end": false,
  "spell_check": true,
  "theme": "Spacegray.sublime-theme",
  "translate_tabs_to_spaces": true,
  "trim_trailing_white_space_on_save": true,
  "vintage_start_in_command_mode": true,
  "wrap_width": 80
}

Vim

Install spf13-vim

curl http://j.mp/spf13-vim3 -L -o - | sh

Set up dotfiles

cd ~/SpiderOak\ Hive/dotfiles/
stow -t ~ vim

Python packages

./install-via-pip.sh

OS X Preferences

#Set a blazingly fast keyboard repeat rate
defaults write NSGlobalDomain KeyRepeat -int 0.02

#Set a shorter Delay until key repeat
defaults write NSGlobalDomain InitialKeyRepeat -int 12

#Add a context menu item for showing the Web Inspector in web views
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true

#Show the ~/Library folder
chflags nohidden ~/Library

#Store screenshots in subfolder on desktop
mkdir ~/Desktop/Screenshots
defaults write com.apple.screencapture location ~/Desktop/Screenshots

Set hostname

sudo scutil --set HostName macbook-aer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment