• Stars
    star
    109
  • Rank 319,077 (Top 7 %)
  • Language
    Perl
  • Created about 14 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Dot Dot Dot

Name

... - Unix dot file management and sharing

Quick Install

> git clone git://github.com/ingydotnet/....git
> .../... conf .../example.conf
> .../... update
> .../... install

Synopsis

NOTE: In the following lines, '> ' is a command line prompt, and '...' is the literal name of this program.

> ... help                  # Get help
> ... conf <path-or-url>    # Copy a ... conf from a file or url
> ... backup                # Backup your old dot files
> ... install               # Install your dot files
> ... list                  # List the source files that will install
> ... status                # Check status of your dot file repos
> ... conflicts             # Show dot file collisions
> ... update                # Update your dot files
> ... upgrade               # Do update and then install.
> ... remove                # Remove all installed dot files
> ... restore ~/.../backup/20101112-235947/

Description

Unix dot files do not get the care they deserve. They quietly make our computers work comfortably for us, and yet we toss them about carelessly from machine to machine. We make a tweak here and an addition there, without keeping them all properly groomed and in sync.

DotDotDot (aka ...) is a toolset for managing sets of Unix dot files and configuring them for a given machine. The files usually come from various source control repositories (like git or svn). You can use other people's repositories, or make your own, or both. You can share your repositories with others on hosting sites like GitHub, and also keep you private settings in repositories on your private server.

DotDotDot takes these concerns into account:

  • You have multiple machines with varying requirements

  • Some of your setting are private

  • You might work as multiple users

DotDotDot is a great way to share settings on an agile development team at your work place. When you pair program, you know that you can expect common commands to work on a coworker's shell, but both of you can also have your personal settings too.

Also, with DotDotDot, you can easy try new groups of settings, and then restore to your previous settings when you are done.

DotDotDot installs a command line program called ... (yes, literally three period characters). It does all the actions you will need to keep your dot files a big happy family.

Prerequisites

The ... comand requires the following standard Unix tools in your PATH:

  • perl (any old version since 1998)

  • cat

  • cp

  • cpio

  • rm

You'll need one or more collections of dot files. Here's a few:

  • git://github.com/ingydotnet/dotdotdot.git

  • git://github.com/ingydotnet/ingy-dots.git

  • git://github.com/socialtext/stconfig.git

You can also make your own repository from one of your current machine's configuration. See below. Additionally, to allow using multiple dotfile repos at once, take a look at https://github.com/sharpsaw/loop-dots

Installation

To install "...", run these commands in your Unix shell:

> cd $HOME
> git clone git://github.com/ingydotnet/....git
> cd .../src
> # Get collections of dot files from various places
> git clone git://github.com/ingydotnet/dotdotdot.git
> git clone git://github.com/ingydotnet/ingy-dots.git personal
> svn checkout your/svn/dot/file/repo private
> cd ..
> cp example.conf conf
> vim conf              # Edit the ... configuration file
> cd $HOME
> .../bin/... -h        # Show ... help info
> .../bin/... backup    # Backup your existing dot files
> .../bin/... install   # Install your new dot files
> exec bash
> ... upgrade

Links

There are 3 possible ways to install your dot files:

  • hardlink to source (default)

  • symlink to source

  • copy from source

You can change this with the install_method configuration setting. You can also use the -h | --hardlink and -s | --symlink options of the install subcommand to override this from the command line.

Using links is preferable. That way if you change a dot file in your home directory, it gets changed in its source repository. Then you can push/pull changes upstream, and share them with your other machines and with the world.

Hard links are visially quiet, and symlinks are noisy. Your choice. Use copy when you don't want changes in $HOME to change files in your repo.

Backups

DotDotDot has a command to make a backup of all the files it would replace on the install command.

If you have the auto_backup option set in your config file (this is the default value; you would have to actually turn it off to disable it), then DotDotDot will make a backup of your files every time you run another command that might change your dot files.

Backups are just timestamp named directories under $HOME/.../backup/. Like this:

/home/ingy/.../backup/20101121-094620

You can restore your dot files from a backup with the ... restore directory- name command.

Using Backup to Make a New Repository

If you are new to DotDotDot and want to take your dot files from one machine, make them into a repository and share them with your other machines, DotDotDot makes that easy. Just follow these steps:

> ... backup
Backed up 69 dot files to /home/ingy/.../backup/20101121-094620
> cd ~/...
> mv backup/20101121-094620 src/my-dots
> # Add `my-dots` to `dots` in the `conf` file.
> ... remove    # Delete all your dot files from $HOME
> ... install   # Reinstall them (as links!)
> cd src/my-dots
> git init
> git add .
> git commit -m 'first commit'
> git remote add origin <url-to-upstream-repo>
> git push origin master

Credit

This work is based on my experience working at Socialtext and their "stconfig" common settings: http://github.com/socialtext/stconfig

Availability

This project is currently available at: http://github.com/ingydotnet/...

Author

Ingy dΓΆt Net <[email protected]>

Copyright

Copyright (c) 2010-2015. Ingy dΓΆt Net.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://www.perl.com/perl/misc/Artistic.html

More Repositories

1

git-subrepo

Shell
3,199
star
2

git-hub

Do GitHub operations from the `git` command
Shell
794
star
3

vroom-pm

Vim Based Slideshow Presentations
Perl
110
star
4

json-bash

Load, Dump and Manipulate JSON in Bash
Shell
107
star
5

jemplate

Industrial strength JavaScript template framework
Perl
64
star
6

yaml-vim

YAML Highlight script for VIM editor
Vim Script
50
star
7

mo-pm

Perl Micro Objects
Perl
41
star
8

io-all-pm

All in One Perl IO
Perl
38
star
9

bashplus

Modern Bash Programming Framework
Shell
36
star
10

yaml-libyaml-pm

Perl Binding to libyaml
C
33
star
11

pairup

Shell
29
star
12

yaml-pm

YAML Perl Module
Perl
20
star
13

dotdotdot

Organize and share your *nix dot files
Vim Script
19
star
14

pquery-pm

Perl Port of jQuery
Perl
19
star
15

cdent-py

C'Dent - Portable Module Programming Language
Python
19
star
16

inline-pm

Write Perl subroutines in other programming languages
Perl
19
star
17

xxx-pm

See Your Data in the Nude
Makefile
16
star
18

swim-pm

Perl
15
star
19

test-more-bash

Shell
15
star
20

test-base-pm

Extendable Perl Testing
Perl
13
star
21

rosettacode-pm

RosettaCode Data Extractor
Perl
12
star
22

lola

Shell
12
star
23

yaml-perl-pm

Pure Perl Port of PyYAML
Python
11
star
24

ajaxterm

Fork of antony.lesuisse.org/ajaxterm
Python
10
star
25

inline-c-pm

Perl
10
star
26

mousse-pm

A Light and Tasty Moose for CPAN Authors
Perl
10
star
27

testml-pm6

TestML for Perl 6
Perl 6
10
star
28

testml-pm

TestML for Perl
Perl
9
star
29

testml

TestML Specification and Documentation
9
star
30

git-xs-pm

Perl XS Wrapper of libgit2
C
8
star
31

package-py

Common parts for Python packages
Python
8
star
32

scim-query-filter-parser-rb

Ruby
8
star
33

stump-pm

Larry Wall's Stump Speech Slideshow Software
Perl
7
star
34

test-base-js

Test.Base module for JavaScript
7
star
35

boolean-pm

Boolean Type Support for Perl
Perl
7
star
36

live-demo

Shell
7
star
37

this-shit

Fork this-shit
7
star
38

testml-tml

TestML Tests for TestML
6
star
39

path-manip-sh

Bash PATH manipulation functions
Shell
6
star
40

yaml-book-2010

YAML - The Book
Ruby
6
star
41

pairup-stackato

PairUp! - The Pair Programming Station that runs as a Stackato App
Shell
6
star
42

only-pm

Load specific Perl module versions
Perl
6
star
43

project-site

Static Content Website Generator
Shell
6
star
44

template-toolkit-simple-pm

A Simple Interface to Template Toolkit
Perl
6
star
45

class-js

Extremely lightweight, but useful JavaScript class wrapper
Perl
6
star
46

yaml-shell-pm

A YAML/Perl Interactive Shell
Perl
6
star
47

jsony-pm

JSONY - Relaxed JSON with a little bit of YAML
Raku
6
star
48

pst

Shell
5
star
49

yaml3-pm

YAML Implementation for Perl 5 using Pegex
Perl
5
star
50

ingydotnet-resume

Ingy dot Net's resume
HTML
5
star
51

perfect-demo

Shell
5
star
52

perl5-pm

Framework module for bundling Perl5 modules
Perl
5
star
53

crockford-py

Crockford base32 encode module for Python
Python
5
star
54

app-aycabtu-pm

All Your Codez Are Belong To Us
Perl
5
star
55

zilla-dist-pm

Perl
5
star
56

ingy-dots

Personal Dot Files
Shell
5
star
57

stardoc-pm

Acmeist Documentation
Perl
5
star
58

cog-osdctw2011-talk

Cog Talk for OSDC::TW 2011
5
star
59

yaml-js

YAML for JavaScript
4
star
60

acmeism-osdctw2010-talk

Please Check Your Guns at the Door -- C'Dent, the Acmeism and Everyone
4
star
61

kwiki

Kwiki Wiki Framework
Perl
4
star
62

yamltime-pm

YAML based Time Tracker App
Perl
4
star
63

yadda

Perl
4
star
64

plack-middleware-cache-pm

Response Caching Middleware for Perl's Plack
Perl
4
star
65

file-share-pm

Improved File::ShareDir for Perl
Makefile
4
star
66

lexicals-pm

Create a hash of your 'my' variables
Perl
4
star
67

moos-pm

Moo Simple
Perl
4
star
68

wikiwyg-net-site

Wikiwyg Website - Static Content
Smalltalk
4
star
69

boot-dots

... bootstrapping dot files
Shell
4
star
70

language-snusp-pm

SNUSP Programming Language Interpreter
Makefile
4
star
71

wikitext-pm

WikiText.pm
Perl
3
star
72

testml-pgx

TestML Spec Grammar in YAML and JSON
JavaScript
3
star
73

testml-py

TestML for Python
Python
3
star
74

jsync-spec

JSYNC Specification
3
star
75

pegex-crontab-pm

Pegex Crontab Parser
Perl
3
star
76

devel-local-pm

Use development versions of other modules
Perl
3
star
77

spiffy-pm

Spiffy Perl Interface Framework For You
Perl
3
star
78

pyplay-py

Play Around in Python
Python
3
star
79

projects-ingy-net-site

Ingy's Project Site -- Static Content
Smalltalk
3
star
80

pegex-pegex-emitter-perl6regex-pm

Pegex Pegex Emitter for Perl 6 Regexes
Perl
3
star
81

yaml-pgx

Pegex Grammar for YAML
Makefile
3
star
82

yaml-to-json-docker

JavaScript
3
star
83

jsync-pm

JSYNC Module for Perl
Perl
3
star
84

module-manifest-skip-pm

MANIFEST.SKIP Management for Perl
Perl
3
star
85

alt-pm

CPAN Module Documenting the Alt Namespace
Perl
3
star
86

pegex-forth-pm

Perl
3
star
87

www.jemplate.net

JavaScript
3
star
88

xxx-pm6

See Your Perl 6 Data in the Nude
Perl
3
star
89

gloom-pm

Great Little OO Module
Perl
3
star
90

testml-code

TestML Examples
Perl
3
star
91

bpan-bash

Shell
3
star
92

yaml-dev-kit

Perl
3
star
93

test-tap-bash

Shell
3
star
94

pyyaml-mirror

A git mirror of PyYAML
Python
3
star
95

test-more-bash-pm

Shell
3
star
96

libyaml-mirror

A git mirror of libyaml
C
3
star
97

yes

CoffeeScript
2
star
98

acmeism-yapceu-2011-talk

YAPC Europe 2011 Acmeism Talk
2
star
99

pegex-ppw2010-talk

Pegex Talk at Pittsburgh Perl Workshop 2010
2
star
100

linux-setup-sh

Bash setup scripts for new Linux installs
Shell
2
star