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

Environment variable expansion in config #182

Open
TeeSeal opened this issue Jul 2, 2024 · 0 comments
Open

Environment variable expansion in config #182

TeeSeal opened this issue Jul 2, 2024 · 0 comments
Labels
feature New feature or request

Comments

@TeeSeal
Copy link

TeeSeal commented Jul 2, 2024

Example:

[plugin.example]
local = "$ZDOTDIR/plugins"

Ability to use environment variables for local plugin paths would make the sheldon config more portable (i.e. adds ability to use the same config on multiple systems that don't necessarily have the same directory structure).

Local plugins would probably be the most used case, but this could also be useful for other configuration options in some situations. For example:

[plugin.private-plugin]
git = "https://$PIRVATE_GIT_HOST/owner/repo"

I can see that a type of templating is already being used in some configuration fields so that can probably be re-used instead of using the the shell syntax:

[plugin.example]
local = "{{ env.ZDOTDIR }}/plugins"

I've looked through the documentation and couldn't find anything similar but do let me know if something like this is achievable with the current feature set.

@rossmacarthur rossmacarthur added the feature New feature or request label Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants