These dotfiles are designed to work well in both OSX and Linux.
- git
- ruby
$ git clone git@github.com:BradBuckingham/dotfiles.git ~/.dotfiles
$ cd ~/.dotfiles
$ ruby setup.rb$ cd ~/.dotfiles
$ ruby setup.rb update$ cd ~/.dotfiles
$ ruby setup.rb uninstallLarge 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.
- zshrc:
~/.zshrc.beforeand~/.zshrc.after
- Edit the default profile's 16 colors (in this order) to match the Solarized palette
- Install iTerm2
- Install XCode CLI tools (includes git, etc):
sudo xcode-select - Install these dotfiles ;)
- Switch to ZSH:
chsh -s /bin/zsh - Install homebrew
$ 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
$ 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
$ git submodule foreach git pull origin master
$ git commit -m "Updated all Vim plugins"- Delete the relevant line from the
.gitmodulesfile. - Delete the relevant section from
.git/config. - Run
git rm --cached path_to_submodule(no trailing slash). - Commit and delete the now untracked submodule files.
Source: Stack Overflow