Skip to content

ihough/dotfiles

 
 

Repository files navigation

dotfiles

Based on Mathias’s dotfiles

Installation

Using git and the bootstrap script

Clone this repository wherever you want (e.g. ~/code/dotfiles) and run bootstrap.sh:

git clone https://github.com/ihough/dotfiles.git
cd dotfiles
source bootstrap.sh

To update, cd to the dotfiles repository and re-run bootstrap.sh:

source bootstrap.sh

Git-free install

To install without git:

cd
curl -#L https://github.com/ihough/dotfiles/tarball/main | tar -xzv --strip-components 1 --exclude={bootstrap.sh,LICENSE-MIT.txt,README.md}

To update, just run that command again.

Customization

If ~/.extra exists, it will be sourced along with the other files. You can use this to add a few custom commands or to add commands you don't want to commit to a public repository.

If ~/.gitconfig.user exists, it will be included in .gitconfig. You can use this to set your git author name and email:

[user]
  name = Your Name
  email = [email protected]

Configure macOS

The macos.sh script sets defaults and configuration for macOS. Run it with:

./macos.sh

Install software

The Brewfile defines packages and apps that can be installed with Homebrew:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
reload
brew bundle --file Brewfile

You can update the Brewfile using:

brew bundle dump --describe

Updates

To copy changes from your local dotfiles (in $HOME) to this repository, run get-local-changes.sh:

source get-local-changes.sh

Then examine and commit the desired changes.

About

macOS dotfiles

Resources

License

Stars

Watchers

Forks

Languages

  • Vim Script 48.3%
  • Shell 45.5%
  • Ruby 6.2%