Skip to content

Set $XDG_CONFIG_HOME and $VCSH_BASE based on existing .config/vcsh - #255

Closed
bschubernd wants to merge 2 commits into
RichiH:masterfrom
bschubernd:master
Closed

Set $XDG_CONFIG_HOME and $VCSH_BASE based on existing .config/vcsh#255
bschubernd wants to merge 2 commits into
RichiH:masterfrom
bschubernd:master

Conversation

@bschubernd

Copy link
Copy Markdown

Set $XDG_CONFIG_HOME and $VCSH_BASE based on existing .config/vcsh,
as discussed in vcs-home@lists.madduck.net 2018/10/28 in Mail with subject "dynamically set VCSH_BASE and XDG_CONFIG_HOME".

@ao2

ao2 commented Oct 30, 2018

Copy link
Copy Markdown

Seems unnecessarily complicated, check out #115 which basically allows to set up XDG_CONFIG_HOME and VCSH_BASE as env variables in ./.config/vcsh/config and enable sourcing that file from the current working directory.

Also related to #110

@bschubernd

Copy link
Copy Markdown
Author

ble sourcing that file from the curr

You can continue to set XDG_CONFIG_HOME and VCSH_BASE as env variables in ./.config/vcsh/config.
#255 will change anything if you have set one of both variables.

But I do not want to set any variables in config files. This seems to me unnecessarily complicated. It just has to work automatically. The same way as it would work for the git command if a .git/ dir was found in the actual working directory path.

You can use "mkdir -p .config/vcsh" everywhere and start with new repositories. I have tested it with files in /srv/kvm/ and in /etc.

@bschubernd bschubernd closed this Oct 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants