Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vcsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kevin Lyda
vcsh
Commits
09bd382d
Commit
09bd382d
authored
11 years ago
by
Richard Hartmann
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'andschwa/docs'
parents
e065ccfe
880e1144
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+23
-15
23 additions, 15 deletions
README.md
with
23 additions
and
15 deletions
README.md
+
23
−
15
View file @
09bd382d
...
@@ -121,10 +121,17 @@ myrepos is just another set of files that you cat track with `vcsh` like any
...
@@ -121,10 +121,17 @@ myrepos is just another set of files that you cat track with `vcsh` like any
other. This makes setting up any new machine a breeze. It can take literally
other. This makes setting up any new machine a breeze. It can take literally
less than five minutes to go from standard installation to fully set up system.
less than five minutes to go from standard installation to fully set up system.
We suggest using
[
myrepos
][
myrepos
]
to manage both
`vcsh`
and other repositories. The
We suggest using
[
myrepos
][
myrepos
]
to manage both
`vcsh`
and other
`mr`
utility takes care of pulling in and pushing out new data for a variety of
repositories. The
`mr`
utility takes care of pulling in and pushing
version control systems. While the use of myrepos is technically optional, it will
out new data for a variety of version control systems. While the use
be an integral part of the proposed system that follows.
of myrepos is technically optional, it will be an integral part of the
proposed system that follows. For instance, you can use
[
myrepos
][
myrepos
]
to track repositories in home such as
`.emacs.d`
,
which
`mr`
can clone and update for you automatically. To do this,
just add a
`mr`
configuration file to
`availabile.d`
with a
`checkout`
command to clone the repo, and set the [title] to the desired
location, e.g.
`$HOME/.emacs.d`
. Try the
`mr register`
command in an
existing repository, then view
`~/.mrconfig`
for an example.
## Default Directory Layout
## Default Directory Layout
...
@@ -174,12 +181,15 @@ repository. This is for demonstration, only. Of course, you are more than
...
@@ -174,12 +181,15 @@ repository. This is for demonstration, only. Of course, you are more than
welcome to clone from this repository and fork your own.
welcome to clone from this repository and fork your own.
[$XDG_CONFIG_HOME/vcsh/repo.d/zsh.git]
[$XDG_CONFIG_HOME/vcsh/repo.d/zsh.git]
checkout = vcsh clone 'git://github.com/RichiH/zshrc.git' zsh
checkout = vcsh clone 'git://github.com/RichiH/zshrc.git'
'
zsh
'
update = vcsh zsh pull
update = vcsh zsh pull
push = vcsh zsh push
push = vcsh zsh push
status = vcsh zsh status
status = vcsh zsh status
gc = vcsh zsh gc
gc = vcsh zsh gc
[$HOME/.emacs.d]
checkout = vcsh clone 'git://github.com/andschwa/emacs.git' '.emacs.d'
### config.d
### config.d
$XDG
\_
CONFIG
\_
HOME/mr/available.d contains
*all available*
repositories. Only
$XDG
\_
CONFIG
\_
HOME/mr/available.d contains
*all available*
repositories. Only
...
@@ -248,12 +258,12 @@ Below, you will find a few different methods for setting up vcsh:
...
@@ -248,12 +258,12 @@ Below, you will find a few different methods for setting up vcsh:
Make sure none of the following files and directories exist for your test
Make sure none of the following files and directories exist for your test
(user). If they do, move them away for now:
(user). If they do, move them away for now:
*
~/.gitignore.d
*
`
~/.gitignore.d
`
*
~/.mrconfig
*
`
~/.mrconfig
`
*
$XDG
\_
CONFIG
\_
HOME/mr/available.d/mr.vcsh
*
`
$XDG\_CONFIG\_HOME/mr/available.d/mr.vcsh
`
*
$XDG
\_
CONFIG
\_
HOME/mr/available.d/zsh.vcsh
*
`
$XDG\_CONFIG\_HOME/mr/available.d/zsh.vcsh
`
*
$XDG
\_
CONFIG
\_
HOME/mr/config.d/mr.vcsh
*
`
$XDG\_CONFIG\_HOME/mr/config.d/mr.vcsh
`
*
$XDG
\_
CONFIG
\_
HOME/vcsh/repo.d/mr.git/
*
`
$XDG\_CONFIG\_HOME/vcsh/repo.d/mr.git/
`
All of the files are part of the template repository, the directory is where
All of the files are part of the template repository, the directory is where
the template will be stored.
the template will be stored.
...
@@ -385,12 +395,10 @@ Grab my myrepos config. see below for details on how I set this up
...
@@ -385,12 +395,10 @@ Grab my myrepos config. see below for details on how I set this up
ln -s ../available.d/* .
ln -s ../available.d/* .
myrepos is used to actually retrieve configs, etc
[
myrepos
][
myrepos
]
is used to actually retrieve configs, etc
.
~ % cat ~/.mrconfig
~ % cat ~/.mrconfig
[DEFAULT]
[DEFAULT]
# adapt /usr/share/mr/vcsh to your system if needed
include = cat /usr/share/mr/vcsh
include = cat $XDG_CONFIG_HOME/mr/config.d/*
include = cat $XDG_CONFIG_HOME/mr/config.d/*
~ % echo $XDG_CONFIG_HOME
~ % echo $XDG_CONFIG_HOME
/home/richih/.config
/home/richih/.config
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment