Skip to content

Instantly share code, notes, and snippets.

@Answart
Last active August 29, 2015 14:03
Show Gist options
  • Save Answart/961a0cbfe011170e4d77 to your computer and use it in GitHub Desktop.
Save Answart/961a0cbfe011170e4d77 to your computer and use it in GitHub Desktop.
My Setup - OSX 10.9 Mavericks

#Mac OS X

##Table of Contents

  • System Preferences
  • XCode
  • Homebrew
  • iTerm2
  • Git
  • Sublime Text
  • Ruby
  • Apps

###Downloads


##OS X Preferences

###Finder

  • Toolbar ** Update to add path, new folder and delete
  • Sidebar ** Add home and code directory ** Remove shared and tags ** New finder window to open in the home directory

###Menubar

  • Remove the display and bluetooth icons
  • Change battery to show percentage symbols
#Show Hidden Files
$ defaults write com.apple.finder AppleShowAllFiles 1
#(restart after)

#Show Path bar in Finder
$ defaults write com.apple.finder ShowPathbar -bool true

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

##XCode

###DL XCode

App Store > XCode

OR

$ xcode-select --install

###DL Command Line Tools

Xcode > Preferences > Downloads > Command Line Tools OR apple developer dl


##Homebrew

Install:

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

OR

$ ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)

Set PATH for .bash_profile:

$ echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_profile

OR

$ echo 'export PATH="/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH"' >> ~/.bash_profile

OR in .bash_profile

[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile

export PATH="/usr/local/bin:$PATH"

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*

Make sure everything is running correctly:

$ brew doctor

Install brew plugins:

$ brew install git node
$ npm install -g coffee-script
$ brew install heroku-toolbelt
$ heroku update

Using brew casks to install apps:

$ brew tap caskroom/cask
$ brew install brew-cask
$ brew cask install google-chrome
$ brew update && brew upgrade brew-cask && brew cleanup

###Find apps/plugins to install thorugh caskroom.io

$ brew cask install appcleaner
$ brew cask install dropbox
$ brew cask install spectacle
$ brew cask install the-unarchiver
$ brew cask install asepsis
$ brew cask install flux
$ brew cask install cheatsheet
$ brew cask install vlc
$ brew cask install suspicious-package
$ brew cask install teamspeak-client

##iTerm2

###iTerm2 Preferences

  • new profile
  • iTerm colors (import)
  • font: 10.8pt monaco,
  • window: column 80, rows 20

###Zsh

Install zsh and zsh completions using homebrew

$ brew install zsh zsh-completions

Install oh-my-zsh on top of zsh to getting additional functionality

$ curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh

if still in the default shell, change default shell to zsh manually

$ chsh -s /bin/zsh

edit the .zshrc by opening the file in a text editor

###Switch to z-shell

$ curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh

###Update .zshrc

$ open ~/.zshrc
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="bureau"
DISABLE_UPDATE_PROMPT="true"
plugins=(git)
export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH
alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
alias zshconfig="subl ~/.zshrc"
alias ohmyzsh="subl ~/.oh-my-zsh"
# export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
source $ZSH/oh-my-zsh.sh

##Git

Ensure git version and output

$ git --version
$ which git

output should be to /user/local/bin/git

Define your Git user

$ git config --global user.name "Alexandra Swart"
$ git config --global user.email "answart@sbcglobal.net"
$ git config --global github.user answart
$ git config --global core.editor "subl -w"
$ git config --global color.ui true
$ git config --global credential.helper osxkeychain
$ git config --global github.token your_token_here

Set .gitignore file

# Folder view configuration files
.DS_Store
Desktop.ini

# Thumbnail cache files
._*
Thumbs.db

# Files that might appear on external disks
.Spotlight-V100
.Trashes

# Compiled Python files
*.pyc

# Compiled C++ files
*.out

# Application specific files
venv
node_modules
.sass-cache

###Set Git key

GITHUB: Generating SSH keys

$ ssh-keygen -t rsa -C "your_email@example.com"
# Creates a new ssh key, using the provided email as a label
# Generating public/private rsa key pair.
# Enter file in which to save the key (/Users/you/.ssh/id_rsa): [Press enter]

$ ssh-keygen -t rsa -C "answart@sbcglobal.net"

#copy ssh key to github.com
subl ~/.ssh/id_rsa.pub

#test connection
# ssh -T git@github.com

##Sublime Text

$ sudo ln -s /Application/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
$ ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
source .zshrc

###Install Package Control

Package Control

###Install Sublime Text Packages ####(manually or through 'CMD'+'SHFT'+'p')

##Sublime Text User Settings

{
	"color_scheme": "Packages/User/SublimeLinter/sunThroughTrees2 (SL).tmTheme",
	"theme": "Watson.sublime-theme",
	"font_face": "Mensch",
	"font_size": 13,
	"ignored_packages":
	[
		"Vintage"
	],
	"save_on_focus_lost": true,
	"show_full_path": true,
	"tab_size": 2,
	"translate_tabs_to_spaces": true
}

##Ruby

###Install rvm

\curl -L https://get.rvm.io | bash -s stable
rvm requirements

###Install rubies

rvm get head

aww yeah

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