Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Barry's dotfiles

Screenshot of my shell prompt


Warning: If you want to give these dotfiles a try, you should first fork this repository, review the code, and remove things you don't want or need. Don't blindly use my settings unless you know what that entails. Use at your own risk!

Using Git and the install script

The dotfiles subdir can be used without any macos-prime files. Store it anywhere. I keep it in ~/Projects/macos-prime/dotfiles, though.

dotfiles serves as a working directory to track your customizations. When you're ready to use them, cd into your local dotfiles repository and then:


Alternatively, avoid the confirmation prompt:

set -- -f; source

Everytime you make changes in dotfiles, you'll have to run the install script again to update.

Specify the $PATH

If ~/.path exists, it will be sourced along with the other files, before any feature testing takes place.

Here's an example ~/.path file that adds /usr/local/bin to the $PATH:

export PATH="/usr/local/bin:$PATH"

Add custom commands without creating a new fork

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

My ~/.extra looks something like this:

# Git credentials
# Not in the repository, to prevent people from accidentally committing under my name
git config --global "$GIT_AUTHOR_NAME"
git config --global "$GIT_AUTHOR_EMAIL"
# Use "gpg --list-secret-keys --keyid-format LONG" to find the signing key
# For users with 2 factor authentication enabled: if git asks you to sign in, use an access token as your password
# Get an access token here:
git config --global user.signingkey "$GIT_SIGNING_KEY"

You could also use ~/.extra to override settings, functions and aliases from my dotfiles repository. It's probably better to fork this repository instead, though.

macOS Preferences

When setting up a new Mac, you may want to set some sensible macOS defaults:



You can’t perform that action at this time.