Alpha Chen
c2c00b69be
|
9 years ago | |
---|---|---|
.bundle | 9 years ago | |
.git_templates/hooks | 10 years ago | |
.hammerspoon | 10 years ago | |
.pentadactyl/plugin | 10 years ago | |
.ssh | 9 years ago | |
.vim | 9 years ago | |
Alfred 2/Alfred.alfredpreferences | 9 years ago | |
ansible | 9 years ago | |
bin | 10 years ago | |
dnsmasq | 9 years ago | |
osx | 10 years ago | |
powerline | 10 years ago | |
resolver | 11 years ago | |
scripts | 9 years ago | |
src | 9 years ago | |
.bash_profile | 10 years ago | |
.bashrc | 10 years ago | |
.gemrc | 10 years ago | |
.gitconfig | 9 years ago | |
.gitignore | 10 years ago | |
.gitmodules | 9 years ago | |
.inputrc | 10 years ago | |
.irbrc | 10 years ago | |
.pentadactylrc | 9 years ago | |
.pryrc | 10 years ago | |
.tmux.conf | 9 years ago | |
.vimrc | 9 years ago | |
Alpha.terminal | 9 years ago | |
LICENSE | 11 years ago | |
README.md | 10 years ago | |
Rakefile | 9 years ago | |
gitignore | 9 years ago |
README.md
A new beginning for what used to be my
conf_dir project, since dotfiles
appears to be the conventional name of these types of repos nowadays.
This uses Ansible to provision new machines.
Usage
There are two ways to go about using this - either locally or remotely. The main difference is that OS X application settings are only copied over when running this on a remote machine.
Either way, we start with installing Xcode:
xcode-select --install
open 'https://itunes.apple.com/us/app/xcode/id497799835?mt=12'
sudo xcodebuild -license
After running Ansible, there are some optional tasks for full desktop setup:
# Remove the bootstrap directory for the canonical one in Dropbox
rm -rf ~/.dotfiles
ln -s ~/Dropbox/dotfiles ~/.dotfiles
# Apply personal Terminal settings
open ~/.dotfiles/Alpha.terminal
# Add private SSH keys
ruby ~/.dotfiles/scripts/setup_ssh_keys.rb
Local
# Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install ansible
brew install ansible
# Clone dotfiles
git clone --recursive https://github.com/kejadlen/dotfiles.git ~/.dotfiles
# Run Ansible
cd ~/.dotfiles/ansible && ansible-playbook main.yml --ask-sudo-pass
rm -f ~/*.retry
Remote
On the remote machine, SSH access must first be enabled (under System
Preferences -> Sharing) and the Xcode Command Line Tools need to be installed
(xcode-select --install
).
cd ~/.dotfiles/ansible && ansible-playbook main.yml --ask-pass --ask-sudo-pass
Misc
To update submodules:
git submodule foreach git pull
Development
Ansible tags are indispensible when tweaking the config.
- command: echo debug
tags: debug
ansible-playbook main.yml --ask-sudo-pass --tags debug
Vagrant
vagrant up
ansible vagrant -m ping
TODO
See issues.