Skip to content

bash evaluation in config #32

@fennifith

Description

@fennifith

It'd be nice to be able to assign variables based on the current environment, for functionality like listMode=$(cat ./aightmode || echo 'list') and so on. This would make it pretty extensible in the future.

To provide access to other settings / conditions, we could set each setting as a variable, e.g. aight_<key>=<value>, before evaluating the setting that we want to obtain. In this case, settings should not be evaluated while the file is being read; it would probably be more efficient to just evaluate them as they're accessed by the rest of the program, since each provider is only run once - better to make the file parsing as inexpensive as possible as each run probably only needs to use a small portion of it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions