A community driven framework of dotfiles, for the usual terminal apps and shells, designed to work across multiple platforms and degrade for older versions of software or O/S, allowing you to use the same settings on all your machines.
- Backup, restore, and sync the prefs and settings for your toolbox. Your dotfiles might be the most important files on your machine.
- Learn from the community. Discover new tools for your toolbox and new tricks for the ones you already use.
- Share what you've learned with the rest of us.
Example dotfiles for:
zsh
vim
nano
git
mercurial
subversion
python
ruby
perl
screen
tmux
mutt
irssi
- and many more...
-
Sign up for an account on github and fork the project.
-
Clone your fork.
git clone --recursive [email protected]:username/dotphiles.git ~/.dotfiles
-
Setup your terminal and the dotfiles you want to use, see below.
-
Edit
dotsyncrc
and enable dotfiles to use. -
Run dotsync
./.dotfiles/dotsync/bin/dotsync -L
-
Start a new login shell.
These are the minimum files you'll want to edit
dotsyncrc
settings for dotsynczsh/zshrc
settings for dotzshvim/vimrc
settings for dotvim- and any dotfiles you enable in
dotsyncrc
dotphiles uses the solarized color theme by default, install the colour scheme for your terminal.
vim-powerline requires patched fonts for the 'fancy fonts' options, you can find links to them to install here and configure your terminal to use one, Menlo works great.
Experimental!
deploy/osx
setup osx and install ports & brews (only use one)deploy/linux
setup linux and install packagespackages/macports
add ports to be installed byosx
(select one)packages/homebrew
add brews to be installed byosx
(select one)packages/apt
add packagess to be installed bylinux
on apt based systems
See the documentation for dotsync for more information.
-
dotsyncrc
Add dotfiles to
dotsyncrc
like[files] ... dotfile dir dir/dotfile ... [endfiles]
dotsync will look for
~/$DOTFILES/dotfile.d/localhost ~/$DOTFILES/dotfile.d/$HOSTNAME ~/$DOTFILES/dotfile.d/$DOMAIN ~/$DOTFILES/dotfile
And link the first one it finds instead of the standard dotfile. The
localhost
dotfile will be excluded from your repo.
-
Usage
Dotsync can be used to link your dotfiles into place
dotsync -L
symlink dotfiles into placedotsync -U
update from github
And update remote machines
dotsync -I -H hostname
initialise hostname with the set of dotfilesdotsync -U -H hostname
update dotfiles on hostname from githubdotsync -I -H hostname -r
initialise hostname with the set of dotfiles with rsyncdotsync -U -H hostname -r
update dotfiles on hostname with rsyncdotsync -A
update dotfiles on all hosts
-
Backups
Any existing ~/.dotfiles will be backed up into
~/.backup/dotfiles/
if found
When you edit your dotfiles, you should commit the changes to git with
git commit -a
And periodically push the changes to github
git push
To keep your fork upto date with additions to the dotphiles repo, do the following
cd ~/.dotfiles
git remote add upstream https://github.com/dotphiles/dotphiles
git fetch upstream
git merge upstream/master
Copyright (c) 2012 Ben O'Hara [email protected]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.