### Install Dotfiles with Git Source: https://github.com/mathiasbynens/dotfiles/blob/main/README.md Clones the dotfiles repository and executes the bootstrap script to install and configure the environment. This is the primary method for setting up the dotfiles. ```bash git clone https://github.com/mathiasbynens/dotfiles.git && cd dotfiles && source bootstrap.sh ``` -------------------------------- ### Install Dotfiles without Git Source: https://github.com/mathiasbynens/dotfiles/blob/main/README.md Installs the dotfiles by downloading a tarball archive from GitHub and extracting it directly to the home directory. This method avoids the need for Git. ```bash cd; curl -#L https://github.com/mathiasbynens/dotfiles/tarball/main | tar -xzv --strip-components 1 --exclude={README.md,bootstrap.sh,.osx,LICENSE-MIT.txt} ``` -------------------------------- ### Install Homebrew Formulae Source: https://github.com/mathiasbynens/dotfiles/blob/main/README.md Executes a script named `brew.sh` to install common Homebrew formulae. This is a crucial step for setting up the development environment on macOS, as some dotfile features depend on specific Homebrew-installed packages. ```shell ./brew.sh ``` -------------------------------- ### Configure PATH Environment Variable Source: https://github.com/mathiasbynens/dotfiles/blob/main/README.md Adds a directory to the system's PATH environment variable. This example adds `/usr/local/bin` to the beginning of the PATH, ensuring it's prioritized. ```bash export PATH="/usr/local/bin:$PATH" ``` -------------------------------- ### Apply macOS Defaults Source: https://github.com/mathiasbynens/dotfiles/blob/main/README.md Executes a script named `.macos` which is designed to set various sensible default configurations for macOS. ```shell ./.macos ``` -------------------------------- ### Configure Git User Information Source: https://github.com/mathiasbynens/dotfiles/blob/main/README.md Sets global Git configuration for user name and email. These variables are typically stored in a `~/.extra` file to avoid committing personal information to the repository. ```bash # Git credentials # Not in the repository, to prevent people from accidentally committing under my name GIT_AUTHOR_NAME="Mathias Bynens" GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME" git config --global user.name "$GIT_AUTHOR_NAME" GIT_AUTHOR_EMAIL="mathias@mailinator.com" GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL" git config --global user.email "$GIT_AUTHOR_EMAIL" ``` -------------------------------- ### Update Dotfiles with Git Source: https://github.com/mathiasbynens/dotfiles/blob/main/README.md Updates the local dotfiles repository to the latest version and re-applies configurations. This command should be run from within the local dotfiles directory. ```bash source bootstrap.sh ``` -------------------------------- ### Update Dotfiles (Non-interactive) Source: https://github.com/mathiasbynens/dotfiles/blob/main/README.md Updates the dotfiles repository and applies configurations without prompting for confirmation. This is useful for automated updates. ```bash set -- -f; source bootstrap.sh ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.