Skip to content

BradBuckingham/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brad's dotfiles

These dotfiles are designed to work well in both OSX and Linux.

Installation dependencies

  • git
  • ruby

Install

$ git clone git@github.com:BradBuckingham/dotfiles.git ~/.dotfiles
$ cd ~/.dotfiles
$ ruby setup.rb

Update

$ cd ~/.dotfiles
$ ruby setup.rb update

Uninstall

$ cd ~/.dotfiles
$ ruby setup.rb uninstall

Thanks

Large portions of this repository borrow heavily from Zach Holman and Ryan Bates excellent dotfile repositories: Zach's idea of organizing dotfiles into "topics" is very intuitive and Ryan's brilliant use of ERB templates for customized dotfiles, like .gitconfig, allows the repository to stay as generic as possible.

Most of the borrowed ideas and code manifest themselves in the installation process: I began with Zach's outstanding Rakefile and merged-in Ryan's support for ERB templates and identical file detection.

Tips

Local overrides (not stored in the repository)

  • zshrc: ~/.zshrc.before and ~/.zshrc.after

Convert Linux's gnome-terminal to Solarized color palette

My OSX setup (after a clean install of OSX)

  1. Install iTerm2
  2. Install XCode CLI tools (includes git, etc): sudo xcode-select
  3. Install these dotfiles ;)
  4. Switch to ZSH: chsh -s /bin/zsh
  5. Install homebrew

Installing a new Vim plugin as a git submodule

$ cd ~/.dotfiles
$ git submodule add <git repo URL> vim/vim.symlink/bundle/<name of plugin>
$ git commit -m "Installed Vim plugin <plugin> as a submodule"

Source: Drew Neil's fabulous Vimcasts

Updating a Vim plugin installed as a git submodule

$ cd ~/.dotfiles/vim/vim.symlink/bundle/<name of plugin>
$ git pull origin master
$ git commit -m "Updated Vim plugin <plugin>"

Source: Drew Neil's fabulous Vimcasts

Updating all Vim plugins installed as git submodules

$ git submodule foreach git pull origin master
$ git commit -m "Updated all Vim plugins"

Removing a git submodule

  1. Delete the relevant line from the .gitmodules file.
  2. Delete the relevant section from .git/config.
  3. Run git rm --cached path_to_submodule (no trailing slash).
  4. Commit and delete the now untracked submodule files.

Source: Stack Overflow

About

Some of my favorite settings for vim, git, zsh, and more!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published