Skip to content

jacobwoffenden/mac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mac

  1. Determine Architecture

    if [[ "$( uname -m )" == "arm64" ]]; then
      export APPLE_SILICON="true"
      export BREW_BINARY="/opt/homebrew/bin/brew"
    else
      export APPLE_SILICON="false"
      export BREW_BINARY="brew"
    fi
  2. Install Xcode Tools

    xcode-select --install
  3. Install Rosetta 2

    if [[ "${APPLE_SILICON}" == "true" ]]; then
      softwareupdate --install-rosetta --agree-to-license
    fi
  4. Install Homebrew

    /bin/bash -c "$( curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh )"
  5. Install Oh My Zsh

    /bin/bash -c "$( curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh )"
  6. Create Directory

    mkdir -p ${HOME}/Developer/github.com/jacobwoffenden
  7. Clone Repository

    git clone https://github.com/jacobwoffenden/mac.git ${HOME}/Developer/github.com/jacobwoffenden/mac
  8. Install Brew Packages

    ${BREW_BINARY} bundle --file ${HOME}/Developer/github.com/jacobwoffenden/mac/Brewfile
    
    # ${BREW_BINARY} bundle --file ${HOME}/Developer/github.com/jacobwoffenden/mac/Brewfile.moj
  9. Create ZSH Configuration

    cp ${HOME}/Developer/github.com/jacobwoffenden/mac/zsh/zshrc ${HOME}/.zshrc
  10. Create Git Configuration

    cp ${HOME}/Developer/github.com/jacobwoffenden/mac/git/gitconfig ${HOME}/.gitconfig
    
    # cp ${HOME}/Developer/github.com/jacobwoffenden/mac/git/gitconfig.moj ${HOME}/.gitconfig
  11. Create Hyper Configuration

    cp ${HOME}/Developer/github.com/jacobwoffenden/mac/hyper/hyper.js ${HOME}/.hyper.js
  12. Create GPG Configuration

    cp ${HOME}/Developer/github.com/jacobwoffenden/mac/gnupg/gpg.conf ${HOME}/.gnupg/gpg.conf
    cp ${HOME}/Developer/github.com/jacobwoffenden/mac/gnupg/gpg-agent.conf ${HOME}/.gnupg/gpg-agent.conf
  13. Import and Trust GPG Public Key

    gpg --import ${HOME}/Developer/github.com/jacobwoffenden/mac/gnupg/[email protected]
    gpg --edit-key [email protected]
    trust
    5
    y

About

My macOS bootstrap files

Topics

Resources

Stars

Watchers

Forks