Personalized settings for Terminal, Git, Sublime Text, etc.
Clone repo
cd ~/where/i/put/repos/
git clone https://github.com/dannydb/dotfiles.git
Edit DOTFILES
location in .bash_profile
export DOTFILES="$HOME/projects/dotfiles" # from
export DOTFILES="$HOME/where/i/put/repos" # to
Run bootstrap.sh
cd dotfiles
./bootstrap.sh
Symlink the sublime directory to ~/Library/Application Support/Sublime Text 2/Packages/user
Run ./bootstrap.sh
again any time you want to update your dotfiles.
Put all the other files you want sourced in dotfiles/custom
.
For example, I have dotfiles/custom/debelius.bash
that looks like
# PATH exports
PATH=$PATH:~/.gem/ruby/1.8/bin
export PATH
# Git credentials
# Not under version control to prevent people from accidentally
# committing with your details
GIT_AUTHOR_NAME="Danny DeBelius"
GIT_AUTHOR_EMAIL="[email protected]"
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
# Set these credentials in ~/.gitconfig
git config --global user.name "$GIT_AUTHOR_NAME"
git config --global user.email "$GIT_AUTHOR_EMAIL"
I stole the prompt themes from bash-it. Try out a different one by changing .bash_profile
:
source "$DOTFILES/themes/rainbowbrite.theme.bash"