My basic user preferences and configuration files, mostly cobbled together from various examples and repositories that I've found across the web.
This configuration is tuned for my Boxen setup. Steal from both for maximum awesome.
The dotfiles can be installed via Boxen (preferred) or manually using shell scripts:
Inside your personal manifest file (e.g., /opt/boxen/repo/modules/people/manifest/<github_login>.pp
):
$dotfiles = "${boxen::config::srcdir}/dotfiles"
repository { $dotfiles:
source => "${::github_login}/dotfiles",
require => File[${boxen::config::srcdir}],
}
exec { "install dotfiles":
provider => shell,
command => "./script/install",
cwd => $dotfiles,
creates => "${home}/.zshrc",
require => Repository[$dotfiles],
}
NOTE: Boxen-based installs will not generate a ~/.gitconfig
file, since it requires user input (name & email address). See the manual install section for directions for generating and linking just this file.
If Boxen isn't an option, there are several scripts for installing and removing the dotfiles in the script
directory.
To install manually:
mkdir -p ~/Code/my
git clone https://github.com/krohrbaugh/dotfiles.git ~/Code/my/dotfiles
cd ~/Code/my/dotfiles
./script/bootstrap
To generate just the ~/.gitconfig
file (assuming directories are created and the repository was cloned):
cd ~/Code/my/dotfiles
./script/gitconfig
On a fresh Mac OS X install, you may also wish to set some sensible system preferences:
NOTE: Consider Boxen for this task, as it simplifies system setup.
cd ~/Code/my/dotfiles
./osx/set-defaults.sh
To set your Mac's machine name:
cd ~/Code/my/dotfiles
hostname=my_hostname ./osx/set-machine-name.sh
To configure Sublime Text 2's user directory:
- Install Sublime Text (dev channel)
- Install Package Control
- Run
sublime2/install.sh
NOTE: Consider Boxen for this task, as it can install Sublime Text, package control and perform this install all at once.
I am running on Mac OS X, using zsh as my shell.
Many aspects of this setup is based on (if not straight copied) from other people's setups: