Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.gnupg
.ssh
bin
init
.aliases
.bash_profile
.bash_prompt
.bashrc
.curlrc
.dock
.exports
.functions
.gemrc
.gitconfig
.gitignore
.hushlogin
.inputrc
.macos
.path
.screenrc
.wgetrc
LICENSE.md
README.md
install.sh

README.md

Barry's dotfiles

Screenshot of my shell prompt

Installation

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:

source install.sh

Alternatively, avoid the confirmation prompt:

set -- -f; source install.sh

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_AUTHOR_NAME="Username"
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
git config --global user.name "$GIT_AUTHOR_NAME"
GIT_AUTHOR_EMAIL="username@users.noreply.github.com"
GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
git config --global user.email "$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: https://github.com/settings/tokens
GIT_SIGNING_KEY="hahahahahahahaha"
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:

./.macos

Thanks

You can’t perform that action at this time.