The Wayback Machine - http://web.archive.org/web/20200917023113/https://github.com/sharkdp/bat/issues/668
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

Separate system and user config files #668

Open
clarfonthey opened this issue Sep 21, 2019 · 7 comments
Open

Separate system and user config files #668

clarfonthey opened this issue Sep 21, 2019 · 7 comments

Comments

@clarfonthey
Copy link
Contributor

@clarfonthey clarfonthey commented Sep 21, 2019

I've been trying to export most of my dotfile-type configs to system packages I can install. A lot of programs offer the option for both a system and a user config (e.g. git reads from /etc/gitconfig, then ~/.gitconfig) although currently, bat reads just one file. It'd be nice if we could do something similar for bat as well, loading both /etc/bat/config and ~/.config/bat/config.

@sharkdp
Copy link
Owner

@sharkdp sharkdp commented Sep 21, 2019

Sounds like a good idea to me! Thank you for the feedback.

@eth-p
Copy link
Collaborator

@eth-p eth-p commented Sep 27, 2019

Adding a quick note for #659: This should probably be configurable by the package maintainer.

@goku321
Copy link

@goku321 goku321 commented Oct 7, 2019

I am very new to Rust, like very very new new. Can I try my hands on this if that's okay?

@sharkdp
Copy link
Owner

@sharkdp sharkdp commented Oct 7, 2019

Sure! Let us know if you need help

@goku321
Copy link

@goku321 goku321 commented Oct 12, 2019

Hi @sharkdp so, this how I am thinking of approaching this: I would just concatenate config read from /etc/bat/config and ~/.config/bat/config together

@sharkdp
Copy link
Owner

@sharkdp sharkdp commented Oct 13, 2019

@goku321 Yes, exactly. I think we should directly implement it with a list of possible paths to read from, in case there will be more (maybe OS-specific) paths in the future.

@etiennemabille
Copy link

@etiennemabille etiennemabille commented Oct 30, 2019

Hi @sharkdp so, this how I am thinking of approaching this: I would just concatenate config read from /etc/bat/config and ~/.config/bat/config together

You could use bat to concatenate those files, right ? 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

5 participants
You can’t perform that action at this time.