Skip to content

Instantly share code, notes, and snippets.

@elijahmurray
Last active March 23, 2017 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elijahmurray/7f77c163329046f12584 to your computer and use it in GitHub Desktop.
Save elijahmurray/7f77c163329046f12584 to your computer and use it in GitHub Desktop.
Notes for Setting up basic environment on new Macbook

https://danielmiessler.com/blog/first-10-things-new-mac/

Setup Environment:

  • install Xcode through App Store
  • Open it and install components
  • Use zsh: chsh -s $(which zsh)
  • Use oh my zsh: curl -L http://install.ohmyz.sh | sh
  • Install homebrew: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Setup homebrew: brew doctor
  • implement prompts in terminal from above command
  • install tmux and heroku CLI: brew install tmux heroku
  • Install vundle: git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

Setup github SSH

Setup Dot Files:

  • clone config/dot files for preferences: (.vimrc, .zshrc, .tmux.conf)
  • git init
  • git remote add origin git@github.com:elijahmurray/dotfiles.git
  • git pull origin master
  • Install vundle plugins: vi ~/.zshrc => run :PluginInstall
  • git config --global alias.br branch
  • git config --global alias.co checkout

Setup Ruby Environment:

  • install bundler: gem install bundler
  • Install RVM: curl -sSL https://get.rvm.io | bash -s stable
  • Install Ruby: rvm install ruby-2.2.5
  • Use Ruby: rvm use ruby-2.2.5 --default
  • Install Rails: sudo gem install rails

Dev Applications:

Streaming Applications:

Trouble Shooting

  1. If you want to repair permissions on El Capitan
  2. Brew command not found: /usr/local/bin/brew doctor and follow the instructions
  3. If pg gem won't install: brew install postgresql
  4. Postgres cont. Possibly
  5. bundle exec rake db:create && bundle exec rake db:migrate
  6. Will likely have to install postgresql enterprise tools as well: http://www.enterprisedb.com/products-services-training/pgdownload
  7. Notes from here: https://gorails.com/setup/osx/10.11-el-capitan - may not work inside of tmux
  8. RVM Issues
  9. rvmsudo rvm get stable --auto-dotfiles
  10. rvm fix-permissions system
  11. rvm group add rvm $USER
  12. rvm reset http://stackoverflow.com/questions/18737006/rvm-ruby-permission-denied
  13. VIM errors
  14. brew install vim --override-system-vi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment