josdotso / yadm-dotfiles

Dotfiles based on YADM tool found at https://github.com/TheLocehiliosan/yadm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 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
###############################################################################

About

Dotfiles based on YADM tool found at https://github.com/TheLocehiliosan/yadm


Languages

Language:Shell 67.7%Language:Emacs Lisp 30.9%Language:Vim Script 1.4%