Last active
August 13, 2016 20:42
-
-
Save ChristopherA/503b172a5fcae5410492 to your computer and use it in GitHub Desktop.
.bash_profile.local — loaded by ~/.bashrc for private data, an example for my github.com/christophera/dotfiles project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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="[email protected]" | |
| GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME" | |
| GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL" | |
| # Set the credentials (modifies ~/.gitconfig) | |
| git config --global user.name "$GIT_AUTHOR_NAME" | |
| git config --global user.email "$GIT_AUTHOR_EMAIL" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment