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

pazi configuration #67

Open
euank opened this issue Apr 12, 2018 · 1 comment
Open

pazi configuration #67

euank opened this issue Apr 12, 2018 · 1 comment

Comments

@euank
Copy link
Owner

euank commented Apr 12, 2018

There are a number of things people may want to configure, varying from the alias (e.g. 'j' vs 'z') to the database size.

Until now, I've intentionally punted on configurability, but I don't think it's something to be avoided forever.

One consideration is that I would like to avoid having pazi read configuration files frequently.

I think this can be accomplished by having pazi init read the config file and then output glue shell code that also gets those configuration items across.
This could be by passing the entire configuration as a string to pazi via flag or environment variable, or by creating a nicer serialization of it to pass as a flag or flags, or something else entirely.

I do think it should be reasonable to only read configuration files on init rather than on every shell prompt, and I think this is a reasonable approach to take initially.

Of course, if pazi ever has a long running user daemon, this could be a different discussion, but that's getting well ahead of ourselves.

@leotaku
Copy link
Contributor

leotaku commented Nov 5, 2019

I think that just putting all configuration into environment variables is the most reasonable and performant approach.

Users of pazi will already need to have a custom .bashrc/.zshrc/init.fish, so putting configuration there will not be a challenge to them. Moreover it allows users to have "configuration-as-code".

This approach would also serve to keep pazi light and focused on just the task it needs to accomplish.

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

No branches or pull requests

2 participants