Skip to content
This repository has been archived by the owner on Nov 2, 2019. It is now read-only.

kjeldpeters/dotfiles

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dot Files

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.

Installation

The dotfiles can be installed via Boxen (preferred) or manually using shell scripts:

Boxen-based install (personal manifest)

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.

Manual install (shell script)

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

OS X Preferences

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

Sublime Text 2

To configure Sublime Text 2's user directory:

  1. Install Sublime Text (dev channel)
  2. Install Package Control
  3. 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.

Environment

I am running on Mac OS X, using zsh as my shell.

Credits

Many aspects of this setup is based on (if not straight copied) from other people's setups:

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 73.3%
  • Shell 26.3%
  • Ruby 0.4%