Skip to content

A set of zsh, git and other dev tool configuration files.

License

Notifications You must be signed in to change notification settings

civilcode/dotfiles

Repository files navigation

CivilCode dotfiles

prompt

Prerequisites

The following dependencies have been installed using the laptop script and you SHOULD NOT have to install these manually.

Install rcm:

brew tap thoughtbot/formulae
brew install rcm

Install

Clone onto your laptop:

mkdir -p ~/Development && cd ~/Development
git clone https://github.com/civilcode/dotfiles.git

Install the dotfiles:

env RCRC=$HOME/Development/dotfiles/rcrc rcup

After the initial installation, you can run rcup without the one-time variable RCRC being set (rcup will symlink the repo's rcrc to ~/.rcrc for future runs of rcup). See example.

This command will create symlinks for config files in your home directory. Setting the RCRC environment variable tells rcup to use standard configuration options:

  • Exclude the README.md and LICENSE files, which are part of the dotfiles repository but do not need to be symlinked in.
  • Give precedence to personal overrides which by default are placed in ~/Development/dotfiles.local

You can safely run rcup multiple times to update:

rcup

You should run rcup after pulling a new version of the repository to symlink any new files in the repository.

Make your own customizations

Create a directory for your personal customizations:

mkdir ~/Development/dotfiles.local

Put your customizations in ~/dotfiles.local appended with .local:

  • ~/Development/dotfiles.local/aliases.local
  • ~/Development/dotfiles.local/git_template.local/*
  • ~/Development/dotfiles.local/gitconfig.local
  • ~/Development/dotfiles.local/psqlrc.local (we supply a blank psqlrc.local to prevent psql from throwing an error, but you should overwrite the file with your own copy)

For example, your ~/.aliases.local might look like this:

# Productivity
alias todo='$EDITOR ~/.todo'

Your ~/.gitconfig.local might look like this:

[alias]
  l = log --pretty=colored
[pretty]
  colored = format:%Cred%h%Creset %s %Cgreen(%cr) %C(bold blue)%an%Creset
[user]
  name = Dan Croak
  email = dan@thoughtbot.com

To extend your git hooks, create executable scripts in ~/.git_template.local/hooks/* files.

Your ~/.bash.local might look like this:

# load pyenv if available
if which pyenv &>/dev/null ; then
  eval "$(pyenv init -)"
fi

Credits

The CivilCode Inc. dotfiles is based on and inspired by thoughtbot's dotfiles.

thoughtbot's original work remains covered under an MIT License.

About the CivilCode Collective

The CivilCode Collective, a group of freelance developers, build tailored business applications in Elixir and Phoenix in Montreal, Canada.

About

A set of zsh, git and other dev tool configuration files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •