~/.dotfiles/.brewfile_local.sh -- loaded by ~/.bashrc for private data,

August 13, 2016 · View on GitHub

#!/bin/bash

~/.dotfiles/.brewfile_local.sh -- loaded by ~/.bashrc for private data,

an example for my github.com/christophera/dotfiles project

~/.bash_profile.local is sourced by ~/.bashrc for shell code which will be

.gitignored and thus not be backed up into the .dotfiles repository.

Load on a new machine via:

$ curl -L https://gist.github.com/ChristopherA/503b172a5fcae5410492/raw/.bash_profile.local > ~/.bash_profile.local; source ~/.bash_profile.local

echo "...~/.bash_profile.local loaded."

Git credentials

Not under version control to prevent people from

accidentally committing with these details

GIT_AUTHOR_NAME="ChristopherA" GIT_AUTHOR_EMAIL="ChristopherA@LifeWithAlacrity.com" GIT_COMMITTER_NAME="GITAUTHORNAME"GITCOMMITTEREMAIL="GIT_AUTHOR_NAME" GIT_COMMITTER_EMAIL="GIT_AUTHOR_EMAIL"

Set the credentials (modifies ~/.gitconfig)

git config --global user.name "GITAUTHORNAME"gitconfigglobaluser.email"GIT_AUTHOR_NAME" git config --global user.email "GIT_AUTHOR_EMAIL"