yadm-dotfiles
This dotfile repo uses the yadm tool in order to provision and configure dotfiles on a system.
Usage
Prerequisite: yadm
installation
# Get the Dotfiles onto the system
yadm clone git@github.com:dcwangmit01/yadm-dotfiles.git
# If the clone results in warnings because of pre-existing dotfiles, overwrite
# the existing files.
yadm reset --hard HEAD
# Check for changes in your local dotfiles
yadm diff
# Commit changes back to the repo
yadm add -u :/
yadm commit -m "The description of changes"
yadm push
Customizing the your setup
If the user has installed Keybase, and has created the
file /keybase/private/<user-keybase-id>/.bash_profile_private
, the deployed
.bash_profile
will source the .bash_profile_private
file from keybase. One must define and
customize this file in order configure private settings.
# OSX brew, to get around API limits
export HOMEBREW_GITHUB_API_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# Github
git config --global user.name "First Last"
git config --global user.email email@domain.com
###############################################################################
# AWS Custom Configurations
## AWS config file
cat << 'EOF' > ~/.aws/config
[profile project-foo]
output = json
region = us-west-1
[profile project-bar]
output = json
region = us-west-1
EOF
## AWS credentials file
cat << 'EOF' > ~/.aws/credentials
[project-foo]
aws_access_key_id = XXXXXXXXXXXXXXXXXXXX
aws_secret_access_key = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[project-bar]
aws_access_key_id = XXXXXXXXXXXXXXXXXXXX
aws_secret_access_key = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
EOF
###############################################################################