Skip to content

Support additional configs via ONDIRRC environment var#18

Open
sergei-mironov wants to merge 2 commits into
alecthomas:masterfrom
sergei-mironov:master
Open

Support additional configs via ONDIRRC environment var#18
sergei-mironov wants to merge 2 commits into
alecthomas:masterfrom
sergei-mironov:master

Conversation

@sergei-mironov

Copy link
Copy Markdown

Hello. I'd like to share some updates I'm working on. The goal is to enable the use of ondir on a per-project basis. To achieve this, I'm adding support for per-project configurations alongside the existing system-wide and user-wide ones.

First, I'm using the ONDIRRC environment variable to load additional configurations. I usually set this variable in each project's ~ projects/whatever/env.sh, which is then sourced by a shell that's local to the project.

Second, I want all paths within a per-project configuration to be specified relative to the configuration file itself. So, I've added code that translates enter ./folder to enter ~/proj/whatever/folder, where the base directory is the location of the configuration file.

Please let me know your thoughts on these changes.

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.

1 participant