Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 2 commits into from

Conversation

bschubernd
Copy link

Set $XDG_CONFIG_HOME and $VCSH_BASE based on existing .config/vcsh,
as discussed in [email protected] 2018/10/28 in Mail with subject "dynamically set VCSH_BASE and XDG_CONFIG_HOME".

@ao2
Copy link

ao2 commented Oct 30, 2018

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
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