Skip to content

stephen-puiszis/dotfiles

Repository files navigation

OSX Clean Install / New Environment Setup

Backup the following before doing anything

  • Chrome Bookmarks
  • Dropbox, Box, etc.
  • Email
  • Music / iTunes how to backup
  • iPhone
  • Contacts
  • Messages
  • Push any branches
  • Check downloads folder
  • Check desktop files
  • Export any data from important apps
  • SSH Keys

Environment Setup

Before doing anything:

  • Install Xcode
  • Install Xcode command line tools (preferences > downloads) Note: Don't install Ruby 1.9.3 before doing this, you might run into problems :(
xcode-select --install

Note, you might be able to install this via the App Store as of Sierra.

iTerm 2

  • Install iTerm2 and import preferences

Install Homebrew

  • Install Homebrew and verify installation:
brew doctor

zshrc

  • Install zshell Setup .zsh scripts

Important Homebrew-supported binaries that don't need specialized setup

binaries=(
  ack
  tree
  phantomjs
  pip
  redis
)
echo "installing binaries..."
brew install ${binaries[@]}

Install Git

brew install git
git --version

Make sure you are using the version of Git you just installed. If you're not, you are probably using OSX Git and you should add export PATH="/usr/local/bin:$PATH" to your .bash-profile or .zshrc link

Setup Git & Github

ssh-keygen -t rsa -C <email>

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

#test connection
ssh -T git@github.com

#set git config values
git config --global user.name <name>
git config --global user.email <email>
git config --global github.user <username>
git config --global github.token <token>

git config --global core.editor "subl -w"
git config --global color.ui true

If you have issues authenticating after setting up SSH keys, it's likely because you have two-factor authentication enabled. This blog post will help make things right (create and add an Oauth token in the Github admin).

Other Resources

Ruby & Rails Installtion Using Homebrew & RVM

  • Install RVM and verify installation:
rvm requirements
  • Start Installing Rubies using:
rvm install <ruby version>
  • Install Rails amd verify installation
gem install rails
rails -v

Resources:

Python Installation via pyenv and Homebrew

Follow this guide: https://opensource.com/article/19/5/python-3-default-mac

brew install pyenv

Then, add this to ~/.zshrc

if command -v pyenv 1>/dev/null 2>&1; then
  eval "$(pyenv init -)"
fi

https://opensource.com/article/19/5/python-3-default-mac

Install Sublime Text or Atom

  • Import Preferences
  • Install Fonts
  • Import Custom Theme
  • Install Packages (link)
  • Add export EDITOR="subl -w" # Add Sublime Text to .zshrc
  • Symlink subl to Sublime Text 2 (link):
ln -s /Applications/Sublime\ Text 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl

https://olivierlacan.com/posts/launch-sublime-text-3-from-the-command-line/

Postgres Installation

brew install postgresql

If you can't enter the psql session, try running:

createdb

And don't forget to update preferences. You'll also need to follow the postgres upgrade guides to update any data, if necessary.

Alternatively, use the Postgres app

Mysql Installation

brew install mysql
mysql --version

SQLite Installation

brew install sqlite
sqlite --version

http://www.sqlite.org/download.html

Node Installation

Install via Node Version Manager

Other Stuff

R Installation

xQuartz is a dependency of R and cannot be downloaded via Homebrew.

brew tap homebrew/science
brew install r

Inspired by this awesome environment setup guide: https://gist.github.com/g3d/2709563

About

My personal dotfiles and preferences

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published