Skip to content

Instantly share code, notes, and snippets.

@KELiON
Created April 23, 2019 08:24
Show Gist options
  • Save KELiON/9de2b939350cb45ca16f41a3af7ca07d to your computer and use it in GitHub Desktop.
Save KELiON/9de2b939350cb45ca16f41a3af7ca07d to your computer and use it in GitHub Desktop.
How to migrate to new mac

Old mac

  • Install dropbox
  • Install mackup: https://github.com/lra/mackup
  • Sync app settings using mackup and dropbox
  • Copy all .env files from all projects to envs file
File.open('./envs', 'w+') do |f|
  `find ./*/.env`.split("\n").each do |path|
    f.write("#{path}\n")
    f.write(File.read(path))
  end
end

New mac:

  • Install iterm
  • Copy ~/.ssh from old mac
  • Copy ~/.aws from old mac
  • Copy envs file
  • Install homebrew
  • Create file ~/Brewfile
tap "heroku/brew"
tap "homebrew/boneyard"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-versions"
tap "homebrew/cask-fonts"
tap "homebrew/core"
tap "homebrew/services"
tap "petere/postgresql"
tap "homebrew/core"
brew "ansible"
brew "python"
brew "awscli"
brew "webp"
brew "git"
brew "mackup"
brew "node"
brew "parallel"
brew "petere/postgresql/postgresql-common", link: false
brew "petere/postgresql/postgresql@9.6", link: true
brew "ruby-build"
brew "rbenv"
brew "redis"
brew "sqlite"
brew "svgo"
brew "wget"
brew "yarn", args: ["without-node"]
cask "1password6"
cask "docker"
cask "firefox"
cask "font-fira-code"
cask "google-chrome"
cask "ngrok"
cask "skype"
cask "sublime-text"
cask "spotify"
cask "timing"
cask "transmission"
cask "tunnelblick"
cask "visual-studio-code"
cask "vlc"
cask "zoomus"
brew "mas"
mas "Bear", id: 1091189122
mas "Slack", id: 803453959
mas "Spark", id: 1176895641
mas "Telegram", id: 747648890
mas "Things3", id: 904280696
mas "Xcode", id: 497799835
mas "Pixelmator", id: 407963104
mas "Divvy Window Manager", id: 413857545
  • Run brew bundle to install all apps

  • Run mackup restore to sync settings

  • Copy zsh history .zsh_history

  • Setup dotfiles:

  • git clone git@github.com:KELiON/dotfiles.git ~/.dotfiles

  • cd ~/.dotfiles

  • script/bootstrap

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