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

Configuration File for user defaults #1

Open
jhunt opened this issue Feb 29, 2020 · 0 comments
Open

Configuration File for user defaults #1

jhunt opened this issue Feb 29, 2020 · 0 comments
Assignees

Comments

@jhunt
Copy link
Owner

jhunt commented Feb 29, 2020

hatop should search through the filesystem for an optional .hatop/config file that defines defaults for command-line arguments that may have to regularly be supplied.

For example, I have a couple of places where the haproxy socket is in a non-standard location, and I regularly have to pass the --unix-socket CLI arg. I would much prefer to have this:

$ cat ~/.hatop/config
unix-socket=/my/weird/haproxy.sock

and then never have to specify the flag (on that box, at least) ever again.

Inspired by feurix/hatop#5

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

1 participant