Run this command in a UNIX shell (works in OS X, Linux and Cygwin).
curl -fsSL https://raw.githubusercontent.com/monsendag/dotfiles/master/bin/dotfiles | bash
- Git is installed if necessary, via APT, Homebrew or Cygwin.exe (APT or Homebrew is installed if necessary).
- This repo is cloned into the
~/.dotfiles
directory (or updated if it already exists). - Files in
init
are executed (in alphanumeric order). - Files in
copy
are copied into~/
. - Files in
link
are linked into~/
.
Note:
- The
backups
folder only gets created when necessary. Any files in~/
that would have been overwritten bycopy
orlink
get backed up there. - Files in
bin
are executable shell scripts. The folder is prepended to PATH). - Files in
zshrc
gets sourced when starting a new zsh shell. - Files in
conf
just sit there. If a config file doesn't need to go in~/
, put it in there. - Files in
caches
are cached files, only used by some scripts. This folder will only be created if necessary.
These things will be installed, but only if they aren't already.
- Homebrew
- git
- git-extras
- zsh
- tree
- APT
- git-core
- zsh
- tree
- openssh
- subversion
- vim
- curl
- zsh
Any file in the copy
subdirectory will be copied into ~/
. Any file that needs to be modified with personal information (like .gitconfig which contains an email address and private key) should be copied into ~/
. Because the file you'll be editing is no longer in ~/.dotfiles
, it's less likely to be accidentally committed into your public dotfiles repo.
Any file in the link
subdirectory gets symbolically linked with ln -s
into ~/
. Edit these, and you change the file in the repo. Don't link files containing sensitive data, or you might accidentally commit that data!
https://github.com/gf3/dotfiles
https://github.com/mathiasbynens/dotfiles
Copyright (c) 2011 "Cowboy" Ben Alman
Licensed under the MIT license.
http://benalman.com/about/license/