You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.2 KiB

A new beginning for what used to be my
[conf_dir](https://github.com/kejadlen/conf_dir) project, since `dotfiles`
appears to be the conventional name of these types of repos nowadays.
This uses [Ansible](https://github.com/ansible/ansible) to provision new
machines and [stow](http://www.gnu.org/software/stow/) for managing conf
files that can be symlinked.
# Usage
``` shell
# Install Homebrew
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
# Install ansible
brew install ansible
# Clone dotfiles
git clone --recursive https://github.com/kejadlen/dotfiles.git ~/.dotfiles
# Xcode
sudo xcode-select --install
open 'https://itunes.apple.com/us/app/xcode/id497799835?mt=12'
sudo xcodebuild -license
# Run Ansible
cd ~/.dotfiles/ansible && ansible-playbook main.yml --ask-sudo-pass
rm -f ~/*.retry
# Post-Dropbox syncing
rm -rf ~/.dotfiles
ln -s ~/Dropbox/dotfiles ~/.dotfiles
```
To update submodules:
``` shell
git submodule foreach git pull
```
# Development
Ansible tags are indispensible when tweaking the config.
```
- command: echo debug
tags: debug
```
``` shell
ansible-playbook main.yml --ask-sudo-pass --tags debug
```
# TODO
See [issues](https://github.com/kejadlen/dotfiles/issues).