All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
5 Make sure none of those files/diretories exist for your test (user). If they do, move them away for now:
9 ~/.config/mr/available.d/mr.vcsh
10 ~/.config/mr/available.d/zsh.vcsh
11 ~/.config/mr/config.d/mr.vcsh
12 ~/.config/vcsh/repo.d/mr.git/
14 All of the files are part of the template repo, the directory is where the template will be stored
16 apt-get install mr # this is optional, but highly recommended
18 ==Clone the template==
22 git clone git://github.com/RichiH/vcsh.git vcsh
24 ln -s vcsh /usr/local/bin
26 vcsh clone git://github.com/RichiH/vcsh_mr_template.git mr.vcsh
28 ==Enable your test repository==
32 cd ~/.config/mr/config.d/
33 ln -s ../available.d/mr.vcsh .
37 ==Set up your own repos==
39 Now, it's time to edit the template config and fill it with your own remotes:
41 vim .config/mr/available.d/mr.vcsh
42 vim .config/mr/available.d/zsh.vcsh
44 And then create your own stuff
47 vcsh run foo git add -f bar baz quux
48 vcsh run foo git remote add origin git://quuux
49 vcsh run foo git commit
52 cp .config/mr/available.d/mr.vcsh .config/mr/available.d/foo.vcsh
53 vim .config/mr/available.d/foo.vcsh # add your own repo
59 This is the beauty of it all. Once you are set up, just run:
69 # This is how my setup looks. Adapt to your style or copy mine verbatim, both is fine.
75 # Clone vcsh and make it available
76 git clone git://github.com/RichiH/vcsh.git vcsh
77 PATH+=":$HOME/work/git/vcsh"
80 # Grab my mr config. see below for details on how I set this up
81 ~/work/git/vcsh/vcsh clone ssh://<remote>/mr.git
82 cd ~/.config/mr/config.d/
83 ln -s ../available.d/* .
85 # make vcsh work by default. Adapt for Bash etc as needed
87 zsh ~/work/git/vcsh/vcsh clone ssh://<remote>/zsh.git
88 ln -s ~/work/git/vcsh/vcsh .zsh/functions
100 include = cat ~/.config/mr/config.d/*
101 ~ % echo $XDG_CONFIG_HOME
103 ~ % ls $XDG_CONFIG_HOME/mr/available.d # random selection of my repos
104 git-annex gitk.vcsh git.vcsh ikiwiki mr.vcsh reportbug.vcsh snippets.git wget.vcsh zsh.vcsh
106 # then simply ln -s whatever you want on your local machine from
107 # $XDG_CONFIG_HOME/mr/available.d to $XDG_CONFIG_HOME/mr/config.d