Re: How to migrate from madduck’s vcsh to RichiH’s vcsh
For the sake of completeness, this is why I noted it in the first place: 3) Set up $XDG_CONFIG_HOME/mr/available.d/ with configs for each of your fgits repos, following the templates in the new vcsh docs. Make sure you have one for each chunk of your old ~/.mrconfig. 5) mv ~/.fgits/* $XDG_CONFIG_HOME/vcsh/repo.d/ I.e. if you follow Sean's guide literally without setting the variable, you will end up with stuff in $PWD, not ~/.config . Richard ___ vcs-home mailing list vcs-home@lists.madduck.net http://lists.madduck.net/listinfo/vcs-home
Re: How to migrate from madduck’s vcsh to RichiH’s vcsh
On Tue, 13 Dec 2011 19:02:00 +0100 Richard Hartmann wrote: > On Tue, Dec 13, 2011 at 09:56, Bruce Schultz > wrote: > > > XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-$HOME/.config} > > [ -z "$XDG_CONFIG_HOME" ] && XDG_CONFIG_HOME="$HOME/.config" > Of course ;) > > What I meant was "if you use $XDG_CONFIG_HOME outside of vcsh, make > sure it exists" Not sure what "outside of vcsh" means, but any app/script implementing xdg should not assume the var is set. i.e. the user _never_ needs to set this var. Dieter ___ vcs-home mailing list vcs-home@lists.madduck.net http://lists.madduck.net/listinfo/vcs-home
Re: How to migrate from madduck’s vcsh to RichiH’s vcsh
On Tue, Dec 13, 2011 at 09:56, Bruce Schultz wrote: > XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-$HOME/.config} [ -z "$XDG_CONFIG_HOME" ] && XDG_CONFIG_HOME="$HOME/.config" Of course ;) What I meant was "if you use $XDG_CONFIG_HOME outside of vcsh, make sure it exists" Richard ___ vcs-home mailing list vcs-home@lists.madduck.net http://lists.madduck.net/listinfo/vcs-home
Re: How to migrate from madduck’s vcsh to RichiH’s vcsh
On Tue, 13 Dec 2011 18:56:46 +1000 Bruce Schultz wrote: > > > On 13/12/11 07:19, Richard Hartmann wrote: > > On Mon, Dec 12, 2011 at 18:02, Sean Whitton > > wrote: > > > >> 3) Set up $XDG_CONFIG_HOME/mr/available.d/ with configs for each > >> of your fgits repos, following the templates in the new vcsh > >> docs. Make sure you have one for each chunk of your old > >> ~/.mrconfig. > > Make sure $XDG_CONFIG_HOME is set. If it's not, set it to > > $HOME/.config > > You should probably use $HOME/.config by default if $XDG_CONFIG_HOME > is not set. I would usually add a line like this somewhere at the top > of a script, to be sure it is set to something: > > XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-$HOME/.config} > > > From the XDG spec [1]: > > "|$XDG_CONFIG_HOME| defines the base directory relative to which user > specific configuration files should be stored. If |$XDG_CONFIG_HOME| > is either not set or empty, a default equal to |$HOME|/.config should > be used." > > [1] > http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html exactly. scripts (and oneliners/commands) should use ${XDG_CONFIG_HOME:-$HOME/.config} expecting this var to be set is a spec violation. (things would be simpler if the spec would dictate that the var always needs to be set, but...) Dieter ___ vcs-home mailing list vcs-home@lists.madduck.net http://lists.madduck.net/listinfo/vcs-home
Re: How to migrate from madduck’s vcsh to RichiH’s vcsh
On 13/12/11 07:19, Richard Hartmann wrote: > On Mon, Dec 12, 2011 at 18:02, Sean Whitton wrote: > >> 3) Set up $XDG_CONFIG_HOME/mr/available.d/ with configs for each of your >> fgits repos, following the templates in the new vcsh docs. Make sure >> you have one for each chunk of your old ~/.mrconfig. > Make sure $XDG_CONFIG_HOME is set. If it's not, set it to $HOME/.config You should probably use $HOME/.config by default if $XDG_CONFIG_HOME is not set. I would usually add a line like this somewhere at the top of a script, to be sure it is set to something: XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-$HOME/.config} >From the XDG spec [1]: "|$XDG_CONFIG_HOME| defines the base directory relative to which user specific configuration files should be stored. If |$XDG_CONFIG_HOME| is either not set or empty, a default equal to |$HOME|/.config should be used." [1] http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html Bruce ___ vcs-home mailing list vcs-home@lists.madduck.net http://lists.madduck.net/listinfo/vcs-home
Re: How to migrate from madduck’s vcsh to RichiH’s vcsh
On Mon, Dec 12, 2011 at 18:02, Sean Whitton wrote: > asked me to write up the process for his doc/, so the following is > GPL/FDL/CC-BY-SA. Hope it’s of use to someone. Thanks. > 1) Update to a recent version of mr so you have the vcsh repository > type. Install vcsh somewhere in your path (I personally prefer to > manually copy it into ~/local/bin/). Or clone mr's git and softlink mr/lib/vcsh to /usr/share/mr/vcsh for now. > 2) Move ~/.gitignore and ~/.mrconfig out of the way. Clone RichiH’s > template mr config repository: vcsh clone > git://github.com/RichiH/vcsh_mr_template.git mr.vcsh You are more than welcome to start from this, but it's more meant to glean from, not start from. But I am fine with people actually using it, of course. > 3) Set up $XDG_CONFIG_HOME/mr/available.d/ with configs for each of your > fgits repos, following the templates in the new vcsh docs. Make sure > you have one for each chunk of your old ~/.mrconfig. Make sure $XDG_CONFIG_HOME is set. If it's not, set it to $HOME/.config > 6) For each repository in repo.d, do the following: > - git config vcsh.vcsh true Just use vcsh setup foo or vcsh setup path/to/foo Richard ___ vcs-home mailing list vcs-home@lists.madduck.net http://lists.madduck.net/listinfo/vcs-home