Skip to content

heangratha/dotfiles

 
 

Repository files navigation

Overview

A set of vim, zsh, git, and tmux configuration files.

Build Status

Requirements

Mac OS X

  • Homebrew

    brew tap thoughtbot/formulae
    brew install rcm zsh

Ubuntu

  • rcm

    wget https://thoughtbot.github.io/rcm/debs/rcm_1.2.2-2_all.deb
    sudo dpkg -i rcm_1.2.2-2_all.deb
  • terminator (optional)

    apt-get install terminator

Install

Set zsh as your login shell:

chsh -s $(which zsh)

Clone onto your laptop:

cd
git clone git://github.com/ctrabold/dotfiles.git
ln -s dotfiles/rcrc .rcrc

Install

Mac OSX:

rcup -v -t darwin

Ubuntu:

rcup -v -t ubuntu

This will create symlinks for config files in your home directory. The ln -s dotfiles/rcrc .rcrc command only creates a symlink for the rcrc file, which excludes the README.md, LICENSE and Brewfile files, that should not be symlinked. We then run rcup again to create symlinks on all the files but with exclude patterns within .rcrc.

Make sure you use the ubuntu tag when executing this on Ubuntu machines!

You can then safely run rcup multiple times to update:

rcup -t ubuntu

What's in it?

git configuration:

  • Ignores a global set of files through ~/.gitignore_global
  • Sets a bunch of aliases in ~/.gitconfig`

Ruby configuration:

  • Never download documentation for Rubygems

Shell aliases and scripts:

  • see ~/.aliases

Sublimetext3 configuration

  • Symlinks packages and settings via post-up hook

tmux configuration:

  • The tmux config file is a modified version of from the tmux book.

vim configuration:

  • My vim config is based on janus.
  • colorscheme solarized
  • let mapleader = ","

Make your own customizations

Put your customizations in dotfiles appended with .local:

  • ~/.aliases.local
  • ~/.gitconfig.local
  • ~/.tmux.conf.local
  • ~/.zshrc.local

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 = John Doe
  email = [email protected]

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

# recommended by brew doctor
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"

You can also override the files by storing them inside the dotfiles-local folder.

Just use the same filenames as in the dotfiles folder to override the default files with your files.

Install atom packages

apm install --packages-file package-list.txt

Credits

  1. These files are heavily inspired by thoughtbot, inc. Thank you for your inspiring work! The initial versions were inspired by the awesome folks at peepcode.
  2. tmux is awesome - The tmux book helped me getting used to it and it's fun to read. The tmuxinator gem makes tmux even more fun!
  3. My zsh config is based on oh-my-zsh.

About

A repository for my dotfiles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CoffeeScript 46.4%
  • HTML 21.2%
  • JavaScript 20.2%
  • CSS 4.2%
  • Shell 3.3%
  • C 3.1%
  • Other 1.6%