Giter Site home page Giter Site logo

dotfiles_macos's Introduction

dotfiles

I learned about dotfiles from Patrick McDonald (cf. eieioxyz/dotfiles_macos repo).

Bootstrapping is automated with Dotbot.

Capturing installed VS Code Extensions

code --list-extensions > "$DOTFILES/vscode/vscode_extensions"

Ready to set up a new computer?

  1. xcode-select --install (Command Line Tools are required for Git and Homebrew)

  2. Install Homebrew and add it to the path:

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    
    (echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/benpatterson/.zprofile
    
    eval "$(/opt/homebrew/bin/brew shellenv)"`
  3. git clone https://github.com/bmizepatterson/dotfiles_macos.git ~/.dotfiles. We'll start with https but switch to ssh after everything is installed.

  4. cd ~/.dotfiles

  5. If necessary, git checkout <another_branch>.

  6. If necessary, make changes to Brewfile directly.

  7. ./install

  8. Restart computer.

  9. Setup up Dropbox (use multifactor authentication!) and allow files to sync before setting up dependent applications.

  10. Generate ssh key, add to GitHub, and switch remote URLs.

    # Generate SSH key in default location (~/.ssh/config)
    ssh-keygen -t ed25519 -C "[email protected]"
    
    # Start the ssh-agent
    eval "$(ssh-agent -s)"
    
    # Create config file with necessary settings
    << EOF > ~/.ssh/config
    Host *
      AddKeysToAgent yes
      UseKeychain yes
      IdentityFile ~/.ssh/id_ed25519
    EOF
    
    # Add private key to ssh-agent
    ssh-add -K ~/.ssh/id_ed25519
    
    # Copy public key and add to github.com > Settings > SSH and GPG keys
    pbcopy < ~/.ssh/id_ed25519.pub
    
    # Test SSH connection, then verify fingerprint and username
    # https://help.github.com/en/github/authenticating-to-github/testing-your-ssh-connection
    ssh -T [email protected]
    
    # Switch from HTTPS to SSH
    git remote set-url origin [email protected]:bmizepatterson/dotfiles_macos.git

Other resources

dotfiles_macos's People

Contributors

bmizepatterson avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.